mysql Can someone explain this SQL query? [closed]

k5ifujac  于 2022-12-22  发布在  Mysql
关注(0)|答案(1)|浏览(130)

Closed. This question needs details or clarity . It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post .

Closed yesterday.
Improve this question
Got to see this piece of SQL code in one of the Store procedure, I want to understand how its working

`SELECT x'20'` 
ANS: 32 

`SELECT x'09'`
ANS: 9

Can you please explain this piece of code or please provide equivalent pyspark/ scala code for this?

wljmcqd8

wljmcqd81#

Yes I got the answer, Its converting a hexadecimal number to 2's complement decimal.

相关问题