先做人,后做事

Simply a KOP YOU WILL NEVER WALK ALONE

博客园 首页 新随笔 联系 订阅 管理

drop SEQUENCE SEQ_USER_ID;


CREATE SEQUENCE SEQ_USER_ID
START WITH 1001
NOMAXVALUE
NOCYCLE
NOCACHE
NOORDER;

drop table users;


create table users(
 id integer not null,
 username varchar2(20) not null,
 password varchar2(20) not null,
 primary key (id)
);

INSERT INTO users VALUES(SEQ_USER_ID.NEXTVAL,'kop','123');
INSERT INTO users VALUES(SEQ_USER_ID.NEXTVAL,'admin','admin');
commit;

posted on 2008-12-25 10:14  KOP  阅读(207)  评论(0编辑  收藏  举报