4D v14

OCTET_LENGTH

Home

 
4D v14
OCTET_LENGTH

OCTET_LENGTH  


 

 

Command OCTET_LENGTHOCTET_LENGTH (arithmetic_expression)

The OCTET_LENGTH function returns the number of bytes of the arithmetic_expression, including any trailing whitespace.

Example  

This example returns the number of octets for a column comprised of binary data:

SELECT OCTET_LENGTH (MyBinary_col)
FROM MyTable
WHERE MyBinary_col = '93FB';
` returns 2

 
PROPERTIES 

Product: 4D
Theme: Functions

 
SEE ALSO 

BIT_LENGTH

 
ARTICLE USAGE

4D SQL Reference ( 4D v11 SQL Release 4 )
4D SQL Reference ( 4D v14)
4D SQL Reference ( 4D v12.1)
4D SQL Reference ( 4D v13.4)
4D SQL Reference ( 4D v14 R2)
4D SQL Reference ( 4D v14 R3)
4D SQL Reference ( 4D v14 R4)