create table cdpt(
id number(6),
name varchar2(30),
constraint pk_id primary key(id)
);
更改數據庫的“延遲段創建”特性為false 在sql plus 中執行此句
ALTER SYSTEM SET deferred_segment_creation=FALSE;
創建序列
1 create sequence seq_cdpt 2 3 increment by 1 4 5 start with 1 6 7 maxvalue 99999 8 9 minvalue 1 10 11 NOCYCLE 12 13 nocache
注意,用ADO添加時,需加上commit,否則在vs中數據不顯示
1 insert into cdpt values(seq_cdpt.nextval,'feffefe'); 3 commit;
