Re: [despammed] converting varchar to integer - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: [despammed] converting varchar to integer
Date
Msg-id 20050817174024.GA26603@webserv.wug-glas.de
Whole thread Raw
In response to Re: [despammed] converting varchar to integer  (Frank Bax <fbax@sympatico.ca>)
List pgsql-sql
am  17.08.2005, um 12:46:01 -0400 mailte Frank Bax folgendes:
> >>    1) check the value in it is an integer
> >>    2) get the integer value (as integer)
> >test=# update foo set n = substring(t , '[0-9]')::int;
> 
> 
> I think you meant:
>          update foo set n = substring(t , '[0-9]+')::int;

Yes, of corse. Thank you.


Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net===    Schollglas Unternehmensgruppe    === 


pgsql-sql by date:

Previous
From: "Dmitri Bichko"
Date:
Subject: Re: Is it This Join Condition Do-Able?
Next
From: Jeremy Semeiks
Date:
Subject: Re: Is it This Join Condition Do-Able?