This section contains reference documentation for the byteswapInt function.
Reverses the byte order of an integer value. Useful for converting between big-endian and little-endian representations.
byteswapInt(col)
col
INT
Integer value to reverse
Returns: INT
SELECT byteswapInt(intCol) AS value FROM myTable
Last updated 3 months ago
Was this helpful?