If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Hi,
by the way... will IBM ever create DB2 ISO standard compatible way of accessing "current timestamp" variable?
This is important if you write a program to multiple databases (DB2, Oracle, MySQL etc). To have only one SQL code instead of multiple SQL code and multiple program versions.
If the DBMS supports the non-core time zone features (feature ID F411),
then it must also provide the functions CURRENT_TIMESTAMP and
CURRENT_TIMESTAMP(precision) which return a value of type TIMESTAMP
WITH TIME ZONE. If it doesn't support time zones, then the DBMS
must not provide a CURRENT_TIMESTAMP function.
So DB2 brakes this rule: "then the DBMS must not provide a CURRENT_TIMESTAMP function."
At DB2 section:
Code:
the availability of CURRENT_TIMESTAMP could be said
to be against the standard—at least confusing.
Could you please provide me with a reference (number of the subclause) where this is written in the standard? I'm just curious because - usually - the standard does not mandate that a conforming implementation does not provide some functionality if it does not support a certain feature.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development