error: cast the timestam expression

Поиск
Список
Период
Сортировка
От friendVU admin
Тема error: cast the timestam expression
Дата
Msg-id 41FA527E.9050005@friendvu.com
обсуждение исходный текст
Ответы Re: error: cast the timestam expression
Re: error: cast the timestam expression
Список pgsql-sql
When I execute this:
"insert into comments   (    date_posted    )     (select  date_published   from xyz    )"

I get :
"ERROR:  column "date_posted" is of type timestamp without time zone but 
expression is of type text
HINT:  You will need to rewrite or cast the expression."

Both dates are of type timesamp!
I searched how to cast, and can't find it.

What is the syntax to cast a timestamp to a timestamp?
tia,
.V


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