Skip to content

Instantly share code, notes, and snippets.

@VikramVasudevan
Created April 26, 2020 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VikramVasudevan/a4c9f0b1ff2ff9d1669c41da0452aebe to your computer and use it in GitHub Desktop.
Save VikramVasudevan/a4c9f0b1ff2ff9d1669c41da0452aebe to your computer and use it in GitHub Desktop.
Oracle ROWSCN Demo - Part 1
set echo off time on timing off linesize 9999 feedback off heading off
-- The following statement might fail if table t does not exist.
drop table t;
/* Create Table wiht ROWDEPENDENCIES enabled */
CREATE TABLE t
(
x,
y
)
ROWDEPENDENCIES
AS
SELECT ROWNUM, substr(table_name,1,10)
FROM all_tables
WHERE ROWNUM < 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment