oracle 中建自动自长列方法

来源:互联网 发布:中国中小企业数据库 编辑:程序博客网 时间:2024/05/16 07:03

created table  A

主键自动增长列 pk_id

 

create sequence new_if
increment by 1
start with 1

 

插入值时候

 new_if.nextval

删除表中所有数据

truncate table  name