Created
March 26, 2016 18:42
-
-
Save jkstill/4b51fef637e3b7fe809e to your computer and use it in GitHub Desktop.
Test table for Timestamp Math Blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
col c1_dump format a70 | |
col c1 format a35 | |
col funcname format a15 | |
set linesize 200 trimspool on | |
set pagesize 60 | |
drop table timestamp_test purge; | |
create table timestamp_test ( | |
c1 timestamp | |
) | |
/ | |
insert into timestamp_test values(systimestamp ); | |
insert into timestamp_test values(systimestamp - 366); | |
commit; | |
select | |
'timestamp' funcname, c1, dump(c1) c1_dump | |
from timestamp_test | |
union all | |
select | |
'systimestamp' funcname, systimestamp, dump(systimestamp) systimestamp_dump | |
from dual | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment