Convert hex string to number in mySQL -


i have column has value '11b3' in it. want write sql statement (in mysql) ands (&) value 0x1880 , returns result. have been unable treat string column hex number. grateful assistance.

this not work:

select szversion,  hex(szversion), concat("0x",szversion) 

this functions desired (but doesn't pull database:

select 0x11bx & 0x1880 

you can use unhex(str) change hex text , concatenate them.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -