Re: How to Convert VarChar to Date in PgSQL

Поиск
Список
Период
Сортировка
От Jaume Sabater
Тема Re: How to Convert VarChar to Date in PgSQL
Дата
Msg-id 3786f7bb0903100511t5fe45b63tbe84b502b0d64bbc@mail.gmail.com
обсуждение исходный текст
Ответ на How to Convert VarChar to Date in PgSQL  ("Venkat Rao Tammineni" <vtammineni@roulacglobal.com>)
Ответы Re: [GENERAL] How to Convert VarChar to Date in PgSQL
Список pgsql-admin
On Tue, Mar 10, 2009 at 1:07 PM, Venkat Rao Tammineni
<vtammineni@roulacglobal.com> wrote:

>   I have one table which has lot of data.In the same table I have one
> varchar filed. I want to convert into Date data type? Is It possible to
> convert varchar to date datatype with out loosing data.Please guide me.I am
> waiting for your great response.

An easy solution would be to add a new column to the table, of type
date, and then execute an update statement that reads, for each row,
the value in the varchar field and writes the converted value to the
date field.

--
Jaume Sabater
http://linuxsilo.net/

"Ubi sapientas ibi libertas"

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: [GENERAL] How to Convert VarChar to Date in PgSQL
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: [GENERAL] How to Convert VarChar to Date in PgSQL