SQL>insert into dept values (dept_no.nextval,'research','dallas');
SQL>commit;
在Japan数据库那边同样运行以上①,②,③。
在Japan数据库scott用户下创建主关键字的序列号,范围避免和China的冲突。
SQL> create sequence dept_no increment by 1 start with 45 maxvalue 99 cycle nocache;
SQL>insert into dept values (dept_no.nextval,'sales','chicago');
SQL>insert into dept values (dept_no.nextval,'operations','boston');
SQL>commit;