trailing spaces

From: Alejandro Fernandez <ale(at)nin(dot)cx>
To: pgsql-general(at)postgresql(dot)org
Subject: trailing spaces
Date: 2001-05-15 12:12:15
Message-ID: 3B011D1F.733D5F70@nin.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)nin(dot)cx

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin Clift 2001-05-15 12:23:59 Re: trailing spaces
Previous Message D'Arcy J.M. Cain 2001-05-15 11:19:01 Re: [HACKERS] Internet is putting lot of competition fire & heat under Microsoft SQL Server