Re: truncate column width

Поиск
Список
Период
Сортировка
От Gregory Wood
Тема Re: truncate column width
Дата
Msg-id 000f01c1be07$fdb412d0$7889ffcc@comstock.com
обсуждение исходный текст
Ответ на truncate column width  (Hugo Coolens <hugo.coolens@skynet.be>)
Список pgsql-general
> 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Robert Lummert
Дата:
Сообщение: Re: setting up a trace through extended stored procedures
Следующее
От: mohan ananthiah
Дата:
Сообщение: Urgnt. - problem starting postgres