db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernt M. Johnsen" <Bernt.John...@Sun.COM>
Subject Re: timestamp and Derby/Oracle?
Date Tue, 03 Feb 2009 08:48:45 GMT
>>>>>>>>>>>> Kent Spaulding wrote (2009-02-02 15:45:37):
> Thanks, I've headed down that path and it looks much more promising, if 
> not painful.

Oracle has been a bit odd wrt time and date vaules, but if you really
need a literal in the statement, you should try teh JDBC escape syntax
which should be accepted by all compliant JDBC drivers. Presumbaly
Oracle's too:

       VALUES ({ts '2009-02-02 14:28:08.81'}, 'foo value')

Bernt Marius Johnsen, Staff Engineer
Database Technology Group, Sun Microsystems, Trondheim, Norway

View raw message