JDBC metadata type (java.sql.Types)
TIMESTAMP
Dates,
times, and timestamps cannot be mixed with one another in expressions.
Derby supports the following
formats for TIMESTAMP:
yyyy-mm-dd hh:mm:ss[.nnnnnn]
yyyy-mm-dd-hh.mm.ss[.nnnnnn]
The first of the two formats above
is the
java.sql.Timestamp format.
The year must always have four
digits. Months, days, and hours may have one or two digits. Minutes and seconds
must have two digits. Nanoseconds, if present, may have between
one and six digits.
Derby also
accepts strings in the locale specific datetime format, using the locale of
the database server. If there is an ambiguity, the built-in formats above
take precedence.