agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Gerardo Herzig <gherzig@fmed.uba.ar>
To: Suresh Raja <suresh.rajaabc@gmail.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] check data for datatype
Date: Tue, 7 Apr 2015 16:31:35 -0500
Message-ID: <55244CB7.50901@BlueTreble.com> (raw)
In-Reply-To: <1981538304.72853.1428425986418.JavaMail.root@fmed.uba.ar>
References: <1981538304.72853.1428425986418.JavaMail.root@fmed.uba.ar>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 4/7/15 11:59 AM, Gerardo Herzig wrote:
> I guess that could need something like (untested)
>
> delete from bigtable text_column !~ '^[0-9][0-9]*$';
Won't work for...
.1
-1
1.1e+5
...
Really you need to do something like what Jerry suggested if you want
this to be robust.
--
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
view thread (5+ messages)
Message-ID: <55244CB7.50901@BlueTreble.com>
Permalink: ../55244CB7.50901@BlueTreble.com/
Also on: postgresql.org/message-id/55244CB7.50901@BlueTreble.com
reply
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: Jim.Nasby@BlueTreble.com, gherzig@fmed.uba.ar, suresh.rajaabc@gmail.com, pgsql-general@postgresql.org
Subject: Re: [SQL] check data for datatype
In-Reply-To: <55244CB7.50901@BlueTreble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox