Re: [SQL] check data for datatype

Поиск
Список
Период
Сортировка
От Gerardo Herzig
Тема Re: [SQL] check data for datatype
Дата
Msg-id 1981538304.72853.1428425986418.JavaMail.root@fmed.uba.ar
обсуждение исходный текст
Ответ на check data for datatype  (Suresh Raja <suresh.rajaabc@gmail.com>)
Ответы Re: [SQL] check data for datatype  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-general
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.rajaabc@gmail.com>
> Para: pgsql-general@postgresql.org, pgsql-sql@postgresql.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


В списке pgsql-general по дате отправления:

Предыдущее
От: Haiming Zhang
Дата:
Сообщение: Re: Postgres fails to start
Следующее
От: Ray Madigan
Дата:
Сообщение: Re: Postgresql Development Options