摘要:
oracle数据库与其他的数据库不太一样,比如在mysql里自动增长只要设定“auto_increment”即可。可是在oracle里就麻烦了。本文就说说在oracle里建立自动增长的字段。1.建立一个简单的表-- Create tablecreate table USERINFO( ID NUMBER not null, USERNAME VARCHAR2(25) not null, PASSWORD VARCHAR2(50) not null)2.建立序列(sequence)-- Create sequence create sequence USERINFO_AUTOI... 阅读全文
posted @ 2012-07-23 19:11
少爵
阅读(333)
评论(0)
推荐(0)