Get the App
SLTechnology News&Howtos  ›  Database  › 

Mysql's hexadecimal conversion to decimal handouts

Shulou Source: shulou.com Published: 2022-06-01 20:46:20 10月01日 Update

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.

Tags: Base data handouts examples questions updates answers specialties functions available in place actual hour database articles methods limited knowledge space results Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology OPPO Reno macOS Linux