Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > updating table ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3174 of 3323
Post > Topic >>

updating table where one date field is null

by rterry@[EMAIL PROTECTED] (richard terry) Jul 18, 2008 at 07:54 AM

I'm passing some information to postges (from gambas basic), which gets the

data from date type

eg date1 as date
     date2 as date

(IN the postgres database the default on the date field is null)

my problem is that postgres baulks when I"ve not put a date into one of
the 
gambas date variables with the message:

"invalid syntax for type date '00:00:00'"

my sql is far more complex but reduced to the date part reads something
like 
this

insert into mytable (date1, date2) values 

('01/01/2008','00:00:00')

I wondered if anyone could volunteer a solution

Regards

Richard

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 2 Posts in Topic:
updating table where one date field is null
rterry@[EMAIL PROTECTED]   2008-07-18 07:54:11 
Re: updating table where one date field is null
sszabo@[EMAIL PROTECTED]   2008-07-17 15:34:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:31:51 CST 2008.