From: | Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com> |
---|---|
To: | "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: parsing column info |
Date: | 2002-09-10 21:55:30 |
Message-ID: | 20020910215530.12437.qmail@web20805.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
--- "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com> wrote:
> I no longer want the decimals in that column. Is
> there
> a way to parse out the decimals when copying this
> into
> a new table?
Assuming that this column is a varchar(50) like the
others, and that all you want is to delete the decimal
points, probably the easiest way is to use the
"translate" builtin function:
SELECT translate(field,'.', '') (I think: check the
syntax under "string functions" in the docs).
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2002-09-10 21:58:57 | Re: Psql regex is NFA or DFA? |
Previous Message | snpe | 2002-09-10 20:53:41 | Re: describe table query? |