摘要: 1:oracle的id自动增长一般是通过序列实现的,跟建表的语句没有关系!比如你要建一张person表,属性有id,name,age。此时你想把id设置为自增长。create sequence emp_idminvalue 1maxvalue 999999999999999999999999999start with 1increment by 1nocache;然后每次insert的时候insert into person values(person_id.nextval, ...) 就实现了自动增长相关:http://www.cnblogs.com/foura/archive/2010/1 阅读全文
posted @ 2012-12-03 13:28 歌颂者 阅读(187) 评论(0) 推荐(0) 编辑