Re: How to convert a text variable into a timestamp in postgreSQL?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: How to convert a text variable into a timestamp in postgreSQL?
Дата
Msg-id CAKFQuwZg7STg5ho=qu0qHEvn7bZv1y-4v+nZsaKPcbDUCbSepA@mail.gmail.com
обсуждение исходный текст
Ответ на How to convert a text variable into a timestamp in postgreSQL?  (litu16 <litumelendez@gmail.com>)
Список pgsql-general
On Friday, June 26, 2015, litu16 <litumelendez@gmail.com> wrote:
I know how to convert a text to timestamp in postgreSQL using

*    SELECT to_timestamp('05 Dec 2000', 'DD Mon YYYY')*

but how can I convert a text variable (inside a function) to timestamp??


Generally, just try casting it.

textvarname::date

David J.

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

Предыдущее
От: ZM Yang
Дата:
Сообщение: Question about CONSTRAINT TRIGGER
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Question about CONSTRAINT TRIGGER