max_col_length table colWhat it does:
Returns the length of the 'col' in table 'table'Defined in: /web/philip/tcl/prototype-defs.tcl
Source code:
set db [ns_db gethandle subquery] set sql "select data_length from USER_TAB_COLUMNS where table_name='[string toupper $table]' and column_name = '[string toupper $col]'" set table_length [database_to_tcl_string_or_null $db $sql foo] ns_db releasehandle $db return $table_length