Vertica date/time function format
Posted: Tue Apr 22, 2014 6:45 pm
Hi,
I'm trying to insert current date, and current time into the following table and seems having formatting issues.
Could you provide examples how to format to enter values into DATE and TIMESTAMP columns using CAST or TO_CHAR functions.
create table t1 (dt DATE, ts TIMESTAMP);
insert into (CURRENT_DATE, CURRENT_TIMESTAMP);
Column "ts" is of type timestamp but expression is of type timetz
HINT: You will need to rewrite or cast the expression
I'm trying to insert current date, and current time into the following table and seems having formatting issues.
Could you provide examples how to format to enter values into DATE and TIMESTAMP columns using CAST or TO_CHAR functions.
create table t1 (dt DATE, ts TIMESTAMP);
insert into (CURRENT_DATE, CURRENT_TIMESTAMP);
Column "ts" is of type timestamp but expression is of type timetz
HINT: You will need to rewrite or cast the expression