hai everyone,
I am having a doubt in inserting data in time field.
I am having a table in which in column in timestamp without time zone datatype. I want to insert a row into the table but that time field has no value if I insert omitting that column error occurs...
for eg.
[code=sql]
CREATE TABLE blah
(
uuid integer NOT NULL DEFAULT nextval('univer sal_sq'::regcla ss),
"time" timestamp without time zone
)
WITHOUT OIDS;
[/code]
insert query:
[code=sql]
insert into blah (uuid,time)valu es (5,'')
[/code]
I am getting an error like this:
[code=text]
ERROR: invalid input syntax for type timestamp: ""
SQL state: 22007
[/code]
Please help me i should have that column name in the list but should not have an value for that column.please tell me is there any possible way for this. please help me as soon as possible.....
I am having a doubt in inserting data in time field.
I am having a table in which in column in timestamp without time zone datatype. I want to insert a row into the table but that time field has no value if I insert omitting that column error occurs...
for eg.
[code=sql]
CREATE TABLE blah
(
uuid integer NOT NULL DEFAULT nextval('univer sal_sq'::regcla ss),
"time" timestamp without time zone
)
WITHOUT OIDS;
[/code]
insert query:
[code=sql]
insert into blah (uuid,time)valu es (5,'')
[/code]
I am getting an error like this:
[code=text]
ERROR: invalid input syntax for type timestamp: ""
SQL state: 22007
[/code]
Please help me i should have that column name in the list but should not have an value for that column.please tell me is there any possible way for this. please help me as soon as possible.....
Comment