I have a value for time as 2017-05-25T18:44:56
. The following is my table structure
CREATE TABLE aaaaaa (
enroll_id bigserial primary key,
time timestamp with time zone NOT NULL
);
When i insert the above value into time column its throws the following error { error: syntax error at or near "T18"}
How can i solve this? Please share your ideas. Thanks in advance.
My insert Query:
var query = 'Insert Into aaaaa (enroll_id, time,) values ('+item.EnrollNumber+', '+item.time+')';