RsD0p9BK
11/29/2016 - 6:25 AM

sql__cast_uint_4_byte.sql

-- How to cast a 32-bit integer from unsigned to signed

select CAST((868204003219853 & 0xFFFFFFFF) AS UNSIGNED INTEGER);
-- output 2134137229

-- http://stackoverflow.com/questions/1147512/how-to-cast-a-32-bit-integer-from-unsigned-to-signed-in-mysql-or-php