Mysql's hexadecimal conversion to decimal handouts
This article mainly introduces mysql's hexadecimal conversion decimal handout, hoping to add and update some knowledge. If you have any other questions you need to know, you can continue to follow my updated article in industry information.
Requirements: the hexadecimal of the data in the table is stored in the database, and the data needs to be output in decimal first.
Solution:
Use the conv function of mysql for data conversion
The syntax is as follows:
Conv (NJ from base, to base)
Example 1:
SELECT conv ('0asides, 16,10)
Example 2:
Set @ n = "0926F281"
Select conv (@ nQuery 16 and 10)
Query result
The mutual exchange of data in mysql can be realized through conv.
Read the above mysql hexadecimal conversion decimal handout introduction, I hope it can bring some help to everyone in practical application. Due to the limited space in this article, it is inevitable that there will be deficiencies and need to be supplemented. If you need more professional answers, you can contact us on the official website for 24-hour pre-sales and after-sales to help you answer questions at any time.