Whether the data table in phpMyAdmin can be stored in hexadecimal notation

Source: Internet
Author: User
In phpMyAdmin, can Data tables be stored in hexadecimal notation?


Reply to discussion (solution)

Search for mysql's hex () and unhex () functions

Search for mysql's hex () and unhex () functions
After my experiment, I created a box of data tables named aaa in the database. the two fields in the table are defined as varchar, with 0x13 and 0x04 inserted respectively, then read the two numbers in php and then add them together. I think if they are added as characters, the result is definitely not 23. What I get after running is 23. This means that as long as the data type is set to varchar, the inserted data carries 0x and will be processed as a hexadecimal number.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.