用序列创建序列
create sequence emp_seq
increment by 1
start with 1
nomaxvalue
nocycle
cache 10引用序列
insert into employee
values(emp_seq.nextval,'zhaokeke2004')
create sequence emp_seq
increment by 1
start with 1
nomaxvalue
nocycle
cache 10引用序列
insert into employee
values(emp_seq.nextval,'zhaokeke2004')
SqlServer自动增加字段,或者你在程序使用MAX+1
ID字段类型为number
文字较多的情况下可考虑使用CLOB类型字段,不过操作稍微复杂点。
varchar2最大为4000字符 varchar2(4000)
BLOB是二进制型的,看一的需要
如果少于4000可以用varchar2