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 > Re: updating ta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3174 of 3215
Post > Topic >>

Re: updating table where one date field is null

by sszabo@[EMAIL PROTECTED] (Stephan Szabo) Jul 17, 2008 at 03:34 PM

On Fri, 18 Jul 2008, richard terry wrote:

> 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')

'00:00:00' isn't a date. Are you sure that the second isn't meant to be a
time?

-- 
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 Sat Sep 6 15:31:32 CDT 2008.