From: A. Kretschmer <akretschmer@despammed.com>
To: pgsql-sql@postgresql.org
Subject: Re: [despammed] converting varchar to integer
Date: Wed, 17 Aug 2005 19:40:24 +0200
Message-ID: <20050817174024.GA26603@webserv.wug-glas.de> (raw)
In-Reply-To: <5.2.1.1.0.20050817124436.02d4c970@pop6.sympatico.ca>
References: <1124235288.43027818cb6e3@email.gigaweb.cz>
<1124235288.43027818cb6e3@email.gigaweb.cz>
<5.2.1.1.0.20050817124436.02d4c970@pop6.sympatico.ca>
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 ===
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: akretschmer@despammed.com
Subject: Re: [despammed] converting varchar to integer
In-Reply-To: <20050817174024.GA26603@webserv.wug-glas.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox