Syntax
$COL_LEN(column) | $COLUMN_LENGTH(column)
$COL_LEN | $COLUMN_LENGTH
Required. Both return the same results.
(column)
Required. An unambiguous column name.
- If this function is used in a SQL SELECT, INSERT, or
UPDATE statement, then the column parameter must be from
one of the tables referenced in the statement.
- If this function is used in a COLUMN statement within
an environment file, then column must be the column being
declared.
top
Example
select company,
$col_len(company),
char_length(company)
from customers
where company='national computer'
Company: National Computer Systems
$COLUMN_LEN: 40
CHARACTER_L: 25
top
|