This is a discussion on error: cast the timestam expression within the pgsql Sql forums, part of the PostgreSQL category; --> When I execute this: "insert into comments ( date_posted ) (select date_published from xyz )" I get : "ERROR: ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend |