建立oracle自动增长列,简略版

来源:互联网 发布:破解winrar密码软件 编辑:程序博客网 时间:2024/06/10 07:49

CREATE SEQUENCE note_sequ ;-------------建立名为  note_sequ 的sequence

Insert Into note(Id,title,author,content) Values (note_sequ.nextVal,mldn,sw,mldnsw)

                                                                                    -------------|------------

                                                                                                      |-------------------->调用sequence,移动游标nextVal

调用时使用

原创粉丝点击