oracle的时序书的使用
Oracle 时序 使用
2023-09-27 14:22:11 时间
create sequence student_sequence
start with 10000
increment by 1
--建立时序数
create table students(
id number(5) primary key,
first_name varchar2(20),
last_name varchar2(20),
major varchar2(30),
current_credits number(3)
);
--相应的表格
insert into students(id,first_name,last_name,major,current_credits)
values(student_sequence.nextval,'jessica','niu','medicine',0);
insert into students(id,first_name,last_name,major,current_credits)
values(student_sequence.nextval,'jessica','niu','medicine',0);
student_sequence.nextval相应的调用
select * from students;
1 10000 jessica niu medicine 0
2 10001 jessica niu medicine 0
相关文章
- Oracle窗口函数显示想要的行数
- oracle中的表空间以及和表空间有关的操作
- [Oracle] Data Pump 详细使用教程(4)- network_link
- Oracle入门第五天(下)——数据库其他对象
- 展望Oracle OpenWorld:今年有哪些亮点?
- Oracle unique / distinct
- oracle 基础知识(三)--SCN
- Oracle的tnsnames.ora配置(PLSQL Developer)
- 解决Oracle 11gR2 空闲连接过多,导致连接数满的问题
- oracle 库文件解决的方法 bad ELF interpreter: No such file or directory
- oracle 设置用户密码永不过期
- oracle根据sqlID查找相对应的sql语句
- 原百万访问量博客http://blog.chinaunix.net/uid/20656672.html不再维护(10年前数百篇oracle/teradata性能优化、故障处理案例)