truncate column width

Started by Hugo Coolensabout 24 years ago2 messagesgeneral
Jump to latest
#1Hugo Coolens
hugo.coolens@skynet.be

Is it possible to truncate the width of certain columns when selecting
records?

something like:
select * from mytable where width of this_column truncated to 30
characters;

best regards,
Hugo

#2Gregory Wood
gregw@com-stock.com
In reply to: Hugo Coolens (#1)
Re: truncate column width

Is it possible to truncate the width of certain columns when selecting
records?

Certainly.

something like:
select * from mytable where width of this_column truncated to 30
characters;

select substr('this_column', 1, 30) as this_column_trunc from mytable;

Greg