From: friendVU admin <maillist@friendvu.com>
To: pgsql-sql@postgresql.org
Subject: error: cast the timestam expression
Date: Fri, 28 Jan 2005 08:55:58 -0600
Message-ID: <41FA527E.9050005@friendvu.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: maillist@friendvu.com
Subject: Re: error: cast the timestam expression
In-Reply-To: <41FA527E.9050005@friendvu.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox