trailing spaces

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

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?

Thanks

Ale
--
Alejandro Fernandez Bscp 5 Caledonian University
0790 541 8809 - ale@nin.cx

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

Предыдущее
От: "Gyozo Papp"
Дата:
Сообщение: Re: index ops for _int4 and trees?
Следующее
От: Justin Clift
Дата:
Сообщение: Re: trailing spaces