Skip to content

Instantly share code, notes, and snippets.

@jkstill
Created March 26, 2016 18:42
Show Gist options
  • Save jkstill/4b51fef637e3b7fe809e to your computer and use it in GitHub Desktop.
Save jkstill/4b51fef637e3b7fe809e to your computer and use it in GitHub Desktop.
Test table for Timestamp Math Blog
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