trying to add a row with timestamp for my table which consists of
time timestamp without time zone NOT NULL
I'm using the function now(), but I keep getting
ERROR: invalid input syntax for integer: "2016-12-09 14:32:14.111332"
I tried now()::timestamp didn't help either any idea?
CREATE TABLE game (
score integer,
score2 integer,
time timestamp without time zone NOT NULL,
CHECK ((score is NULL) and (score is NULL))
);
insert into game values(2,3,now());
Thanks!
'2016-12-09 14:32:14.111332'invalid input syntax for integerWhat is the integer here ?insert into game (score, score2, time) values(2,3,now());Unrelated, but:timeis a horrible name for a column - even worse for atimestampcolumn.