Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Geraldo.
Asked: October 17, 2018 - 12:14 pm UTC
Last updated: October 17, 2018 - 1:33 pm UTC
Version: 12.2.0
Viewed 1000+ times
create sequence s; create table t1 ( c1 int default s.nextval primary key ); create table t2 ( t1_c1 int references t1 ( c1 ) ); declare t1id int; begin insert into t1 values ( default ) returning c1 into t1id; insert into t2 values ( t1id ); end; / select * from t1; C1 1 select * from t2; T1_C1 1
Geraldo Peralta, October 17, 2018 - 7:05 pm UTC
The Oracle documentation contains a complete SQL reference.