Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> create table t1(c1 timestamp);
Table created.
SQL> INSERT INTO t1 SELECT current_timestamp FROM dual;
1 row created.
SQL> INSERT INTO t1 SELECT current_timestamp FROM dual;
1 row created.
SQL> select * from t1;
C1
---------------------------------------------------------------------------
26-DEC-15 12.10.31.072140 PM
26-DEC-15 12.10.38.160200 PM
SQL> rollback;
Rollback complete.
SQL> INSERT INTO t1 SELECT systimestamp FROM dual;
1 row created.
SQL> INSERT INTO t1 SELECT systimestamp FROM dual;
1 row created.
SQL> select * from t1;
C1
---------------------------------------------------------------------------
26-DEC-15 12.11.04.247560 PM
26-DEC-15 12.11.08.381185 PM
SQL> rollback;
Rollback complete.
SQL> INSERT INTO t1 SELECT CURRENT_DATE FROM dual;
1 row created.
SQL> INSERT INTO t1 SELECT CURRENT_DATE FROM dual;
1 row created.
SQL> select * from t1;
C1
---------------------------------------------------------------------------
26-DEC-15 12.12.17.000000 PM
26-DEC-15 12.12.24.000000 PM
SQL> rollback;
Rollback complete.
SQL> INSERT INTO t1 SELECT SYSDATE FROM DUAL;
1 row created.
SQL> INSERT INTO t1 SELECT SYSDATE FROM DUAL;
1 row created.
SQL> select * from t1;
C1
---------------------------------------------------------------------------
26-DEC-15 12.13.08.000000 PM
26-DEC-15 12.13.16.000000 PM
SQL> rollback;
Rollback complete.
SQL> select systimestamp from dual union all select systimestamp from dual;
SYSTIMESTAMP
---------------------------------------------------------------------------
26-DEC-15 12.14.48.886688 PM +01:00
26-DEC-15 12.14.48.886688 PM +01:00
SQL> select current_timestamp from dual union all select systimestamp from dual;
CURRENT_TIMESTAMP
---------------------------------------------------------------------------
26-DEC-15 12.15.06.975436 PM +01:00
26-DEC-15 12.15.06.975431 PM +01:00
SQL> select current_timestamp from dual union all select current_timestamp from dual;
CURRENT_TIMESTAMP
---------------------------------------------------------------------------
26-DEC-15 02.18.30.104437 PM +01:00
26-DEC-15 02.18.30.104437 PM +01:00
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> select current_timestamp from dual union all select systimestamp from dual;
CURRENT_TIMESTAMP
---------------------------------------------------------------------------
26/12/15 13:00:31,833000 +01:00
26/12/15 13:00:31,833000 +01:00
SQL> select systimestamp from dual union all select systimestamp from dual;
SYSTIMESTAMP
---------------------------------------------------------------------------
26/12/15 13:00:36,234000 +01:00
26/12/15 13:00:36,234000 +01:00
psql (9.4.5)
postgres=# create table t1(c1 timestamp);
CREATE TABLE
postgres=# begin;
BEGIN
postgres=# INSERT INTO t1 SELECT current_timestamp;
INSERT 0 1
postgres=# INSERT INTO t1 SELECT current_timestamp;
INSERT 0 1
postgres=# select * from t1;
c1
----------------------------
2015-12-26 13:31:23.207154
2015-12-26 13:31:23.207154
(2 lignes)
postgres=# rollback;
ROLLBACK
postgres=# begin;
BEGIN
postgres=# INSERT INTO t1 SELECT statement_timestamp();
INSERT 0 1
postgres=# INSERT INTO t1 SELECT statement_timestamp();
INSERT 0 1
postgres=# select * from t1;
c1
----------------------------
2015-12-26 13:34:49.527654
2015-12-26 13:34:52.798989
(2 lignes)
postgres=# rollback;
ROLLBACK
postgres=# begin;
BEGIN
postgres=# INSERT INTO t1 SELECT clock_timestamp();
INSERT 0 1
postgres=# INSERT INTO t1 SELECT clock_timestamp();
INSERT 0 1
postgres=# select * from t1;
c1
----------------------------
2015-12-26 13:35:34.899791
2015-12-26 13:35:37.739448
(2 lignes)
postgres=# rollback;
ROLLBACK
postgres=# begin;
BEGIN
postgres=# INSERT INTO t1 SELECT CURRENT_DATE;
INSERT 0 1
postgres=# INSERT INTO t1 SELECT CURRENT_DATE;
INSERT 0 1
postgres=# select * from t1;
c1
---------------------
2015-12-26 00:00:00
2015-12-26 00:00:00
(2 lignes)
postgres=# rollback;
ROLLBACK
postgres=# begin;
BEGIN
postgres=# select now() union all select now();
now
-------------------------------
2015-12-26 13:38:53.203258+01
2015-12-26 13:38:53.203258+01
(2 lignes)
postgres=# select statement_timestamp() union all select statement_timestamp();
statement_timestamp
-------------------------------
2015-12-26 13:41:01.515751+01
2015-12-26 13:41:01.515751+01
(2 lignes)
postgres=# select clock_timestamp() union all select clock_timestamp();
clock_timestamp
-------------------------------
2015-12-26 13:41:10.507262+01
2015-12-26 13:41:10.507277+01
(2 lignes)
postgres=# rollback;
ROLLBACK
postgres=# begin;
BEGIN
postgres=# select clock_timestamp();
clock_timestamp
-------------------------------
2015-12-26 13:46:45.020155+01
(1 ligne)
postgres=# select transaction_timestamp();
transaction_timestamp
-------------------------------
2015-12-26 13:46:36.447377+01
(1 ligne)
postgres=# rollback;
ROLLBACK