Returns the defined length of a column.
COL_LENGTH ( table-name, column-name )
Parameter
Description
table-name
The table name.
column-name
The column name.
Returns the column length 35:
SELECT COL_LENGTH ( 'CUSTOMERS', 'ADDRESS' ) FROM iq_dummy
SQL—Vendor extension to ISO/ANSI SQL grammar.
Sybase—Adaptive Server Enterprise function implemented for Sybase IQ.