From: | Gerardo Herzig <gherzig(at)fmed(dot)uba(dot)ar> |
---|---|
To: | Suresh Raja <suresh(dot)rajaabc(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: check data for datatype |
Date: | 2015-04-07 16:59:46 |
Message-ID: | 1981538304.72853.1428425986418.JavaMail.root@fmed.uba.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
I guess that could need something like (untested)
delete from bigtable text_column !~ '^[0-9][0-9]*$';
HTH
Gerardo
----- Mensaje original -----
> De: "Suresh Raja" <suresh(dot)rajaabc(at)gmail(dot)com>
> Para: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
> Enviados: Viernes, 27 de Marzo 2015 15:08:43
> Asunto: [SQL] check data for datatype
>
>
>
>
>
>
>
>
> Hi All:
>
>
> I have a very large table and the column type is text. I would like
> to convert in numeric. How can I find rows that dont have numbers. I
> would like to delete those rows.
>
>
> Thanks,
> -Suersh Raja
From | Date | Subject | |
---|---|---|---|
Next Message | Ray Madigan | 2015-04-07 19:52:41 | Re: Postgresql Development Options |
Previous Message | Haiming Zhang | 2015-04-07 07:05:50 | Re: Postgres fails to start |
From | Date | Subject | |
---|---|---|---|
Next Message | Osborn, Marty | 2015-04-07 20:39:07 | Setting the Field Separator in PSQL |
Previous Message | john | 2015-04-07 14:03:51 | Re: Thank you: an anti-question (or a Pg love letter) |