Re: trailing spaces

Поиск
Список
Период
Сортировка
От Diana Cionoiu
Тема Re: trailing spaces
Дата
Msg-id Pine.LNX.4.30.0105150956540.13406-100000@tudor.softwaresolutions.ro
обсуждение исходный текст
Ответ на trailing spaces  (Alejandro Fernandez <ale@nin.cx>)
Список pgsql-general
>Hi,

Hy,

>I have a table with a field created as char(400). For some reason, when
>I insert information into this, trailing spaces are automatically added
>so that select char_length(fieldname) always gives 400.
>
>How can I amend this table column so that I don't have to use "select
>trim(trailing from fieldname);" to get a well formatted result?

Don't use char(400) use varchar(400).

>Thanks
>
>Ale

Diana


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

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: trailing spaces
Следующее
От: snpe
Дата:
Сообщение: Performance aggregates