When I run select hex (col1) from table1; I get the result as a hexadecimal number
for ex: hexadecimal (65) is 41, but I want to get sq sq query directly for the result as 0x41 instead of 41, is there a way to get the result as 0x41?
select '0x' + hex(col1) from table1
Update:
I read the tag incorrectly and responded with a statement +that is used for MS-SQL. As Sharpay says in a comment,
+
select concat('0x',hex(col1)) from table1
is a version of MySQL.
Source: https://habr.com/ru/post/1761208/More articles:Как синхронизировать офлайн-приложение (HTML + JS + CSS) с моим сервером? - synchronizationDevelop dll.NET 3.5 by uploading it to project 4.0 - will this cause problems? - .netFilter Java comments with StreamTokenizer - javaIs there any memory performance benefit when assigning a function to a prototype in Javascript? - performanceShow form without losing focus - vb.netSimple scroll gallery with jQTouch javascript iphone / ipad - javascriptProblem determining assembly configuration in TFS2010 assembly definition - visual-studio-2010How to enable (or replace) ampersands using the .NET XML library? - xmlHow to ensure that the server is listening on IPv6, if possible, and IPv4 otherwise? - cPyGtk - TreeView and selected row - pythonAll Articles