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;

相关文章:

  • 2022-01-31
  • 2021-12-04
  • 2021-08-22
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-08-06
猜你喜欢
  • 2022-01-02
  • 2021-12-09
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-01-09
  • 2021-05-25
相关资源
相似解决方案