Binary Data Type
Data 360 Query Guide, mirrored from developer.salesforce.com: **Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API
markdownreferencev1JTWA-9GC5guide: data-cloud-query-guidestage: referencetrust: officialsource: developer.salesforce.comservice: data360interface: sqlBinary Data TypeData 360Data CloudData 360 Query Guide
Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/binary.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.
Binary Data Type
Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API
The bytes data type allows the storage of binary strings.
A binary string is a sequence of octets (or bytes). Binary strings differ from character strings in two ways.
- Binary strings can store octets of value zero and other non-printable octets.
- Operations on binary strings process the actual bytes. Processing of character strings depends on locale settings.
Use binary strings to store raw byte data and use character strings to store text.
Data 360 SQL provides these aliases for the bytes type.
byteablobvarbinary
The input format is different from bytes, but the provided functions and operators are mostly the same.
The bytes type supports input and output by using the hex format.
The hex format encodes binary data as two hexadecimal digits per byte, the most significant nibble first. The sequence \x precedes the string. To escape the backslash character, use \\x. For input, the hexadecimal digits can be either upper or lower case.
Example: