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?
1条答案
按热度按时间wljmcqd81#
Yes I got the answer, Its converting a hexadecimal number to 2's complement decimal.