recasting to timestamp from varchar

Поиск
Список
Период
Сортировка
От Kirk Wythers
Тема recasting to timestamp from varchar
Дата
Msg-id 6ADA513E-CF10-48B1-B454-35A31EA7600A@umn.edu
обсуждение исходный текст
Ответы Re: recasting to timestamp from varchar  (Chris Angelico <rosuav@gmail.com>)
Re: recasting to timestamp from varchar  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
I am trying to re-cast a column as a timestamp>

ALTER TABLE sixty_min ALTER COLUMN time2 TYPE timestamp;
ERROR:  column "time2" cannot be cast to type timestamp without time zone

The column time2 is currently a varchar. I actually do not want to mess with time zones, but it seems that postgres will not let me do this. The actual values in the column time2 look like this:

7/15/08 12:00

Is this possible? 

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

Предыдущее
От: Greg Donald
Дата:
Сообщение: pgpool2 load balancing not working
Следующее
От: Kirk Wythers
Дата:
Сообщение: recasting to timestamp from varchar