1、什么是序列呢?

序列是一数据库对象,利用它可生成唯一的整数。一般使用序列自动地生成主码值。一个序列的值是由特别的Oracle程序自动生成,因而序列避免了在运用层实现序列而引起的性能瓶颈。

Oracle序列允许同时生成多个序列号,而每一个序列号是唯一的。 当一个序列号生成时,序列是递增,独立于事务的提交或回滚。容许设计缺省序列,不需指定任何子句。该序列为上升序列

,由1开始,增量为1,没有上限。

2、创建/修改序列的语法

--创建序列的语法 --
create sequence [user.]sequence_name
[increment by n]
[start with n]
[maxvalue n | nomaxvalue]
[minvalue n | nominvalue]; --修改序列的语法--
alter sequence [user.]sequence_name
[increment by n]
[maxvalue n | nomaxvalue]
[minvalue n | nominvalue];

3、序列参数说明

    INCREMENT BY: 指定序列号之间的间隔,该值可为正的或负的整数,但不可为0。序列为升序。忽略该子句时,缺省值为1。
START WITH:指定生成的第一个序列号。在升序时,序列可从比最小值大的值开始,缺省值为序列的最小值。对于降序,序列可由比最大值小的值开始,缺省值为序列的最大值。
MAXVALUE:指定序列可生成的最大值。
NOMAXVALUE:为升序指定最大值为1027,为降序指定最大值为-1。
MINVALUE:指定序列的最小值。
NOMINVALUE:为升序指定最小值为1。为降序指定最小值为-1026。

4、序列示例

--创建示例表 --
create table Student(
stuId number(9) not null,
stuName varchar2(20) not null,
stuMsg varchar2(50) null
) -- 创建序列 Student_stuId_Seq --
create sequence Student_stuId_Seq
increment by 1
start with 1
minvalue 1
maxvalue 999999999; -- 更改序列 Student_stuId_Seq--
alter sequence Student_stuId_Seq
increment by 2
minvalue 1
maxvalue 999999999; --获取序列自增ID --
select Student_stuId_Seq.Nextval 自增序列ID from dual; -- 删除序列 --
drop sequence Student_stuId_Seq; --调用序列,插入Student数据 --
insert into Student(stuId,Stuname) values(Student_stuId_Seq.Nextval,'张三');
insert into Student(stuId,Stuname) values(Student_stuId_Seq.Nextval,'李四');
--查询插入的数据 --
select * from Student

5、示例结果

1)创建序列后,执行获取序列自增ID

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgA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uvPP/+C7ZZFCsZEbCdsBwDYLq6uxtouKLyytvtd/fnHH4QQQmC7xZCcUUoIIQS2AwDskQK284VXOrb7/fv377/+/AO2WxIppRSMwnYAgF1SxnaO8JboyfxdwXaLIzlsBwDYJ8VsZwoPttsosB0AYK8QzjnnvIjtOuHBdhsFtgMA7JXGT53wENu9M7AdAGCvFLOduR222yiwHQBgr5SxXW0D220U2A4AsFcK2K72gO02CmwHANgrc23nqw622y6wHQBgr8yyXYwFbPf7rz8J+aP6DdstiBSMEMplZDdsBwDYLhuw3e/qD2vqZ8h5sN1MJKdWIYecB9sBALbLBmyXA2z3AmA7AMB2ge1ALrAdAGC7wHYgF9gOALBdxtmuWiuEkA+wPD93owIAwCxGx3YAAADA5oDtAAAA7B/YDgAAwP6B7QAAAOwf2A4AAMD+Gf2vuQIAAACbw32tM2wHAABgf8B2AAAA9k//ChLYDgAAwF6B7QAAAOwf2A4AAMD++R9lrdKMIF6BJwAAAABJRU5ErkJggg==" alt="" />

2)修改序列后,执行获取序列自增ID

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAj0AAACiCAIAAAAlXOvpAAAbAElEQVR4nO2dO47rOrpGOYw7jwM44FRO4ojjUOaUmdONTg1HDTC7OBu1E0cODTSIim7SgBOhJsAbUA++RUm0TdnfgtF9SrIoipS59POhTdq2bdv2P//5j+o5nf+tAAAAgCoh8BYAAIANAW8BAADYEvAWAACALQFvAQAA2BLwFgAAgC0Bb4VgVHH5vNNxphjP+qYUStgZ40w9MacAAPByKvYWZ4qJ/g+pGHWb7GGXEN6HK7rCPZIrYvtAijw9SPdrYtJJQpHYpXlwapRJnz5hWccCAMBbUK23pKJUjdriihqts/RaeW5YSnJF88IX1cc6vvbMjZwpQqw0pW9KLUvinpqRCX0yP2CKfV8qSt2d48WKwBEAAPB2VOMt1wRMETb+yegoEk4VcWRgN+jaYb5XmBesKKkoWdXgT4Q7QhHPNJ2SdZaY4l4+KfHyqY8zfCwHs/IxqSCMKGJ/RJ+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jkOMzi725cf6F8EbzvyjI3HI6kEfgrTDcQbz/e97vd55uSTy/KN6/TZaNIZTOacnxbnA4DOzpwtgQtMvUQwihwAvTbLRaxuPNI20f3goxt5wO5BF4K+Qi3iLt8q99XxLvCbEeC6dKvMsiDOOsbEvZshbuQjqdtAvwLN5zqAPegPdJeD/xjU2zOYZ3ieNQui9ljHeZpartK2XajcxL6QUc0mXqDSMFwNuC9OV4P/FN9XMOZ/O5J5U4nm5K+WX9WCeHLM2ydOaVm6UBb25VrBUHDufirZncw1szOYn3XcH2xfHOFGz/au85p7PuQj5lU44u6/GmE+yjOgy/KxGGAeBtb3IP7/tNyfaV8c5CJdu/E7xL6a61IsMB8lJxbylCaLS9lOJdhLIdrEOC6G1zcgzvKdtPjF1YGJOxXeJ0zbo3l7SYLEKEPG/pgQJ425xcwvuJvRt+jnTHnhMLYyUOQtyUJZcyfrqL68c6GeowKV1X35bV6QnwdgDv+w1J5ATeWSg17Wi8A7z8jbHgzK+UaCbA2wG8dXVBvFf0Y8XZssBh7HkBQshk9Aa8rU2At1NJJ3pPZsLnLgt1uM1idOL3vfXdcjppgDfgbaAfn14HCxPgbR7vz/4+4grBTymCvkdH4Q0CgRwT4A0COSvAGwRyVoA3COSsAG8QyFkB3iCQswK8QSBnBXiDQM4K8AaBnBXgDQI5K8AbBHJWgDcI5KwAbxDIWQHeIJCz+h/4TBkjeF8H9QAAAABJRU5ErkJggg==" alt="" />

Ps: 参考学习地址:http://blog.itpub.net/31123655/viewspace-2125276/

oracle中如何创建表的自增ID(通过序列)的更多相关文章

  1. oracle如何创建表的自增ID(通过触发器)

    Oracle中创建表的自增ID(通过触发器),序列的自增ID和触发器的自增ID的区别 1.新增数据(序列) --创建示例表 -- create table Student( stuId ) not n ...

  2. Oracle SQLserver数据库创建表ID字段的自动递增_序列

    Oracle 将表t_uaer的字段ID设置为自增:(用序列sequence的方法来实现) ----创建表 Create table t_user( Id ),userid ),loginpasswo ...

  3. Oracle中存储过程传入表名学习

    Oracle中存储过程传入表名: 一.动态清除该表的数据 create or replace procedure p_deletetable(i_tableName in varchar2)  as  ...

  4. oracle中的dual表详解

    oracle中的dual表详解 1.DUAL表的用途 Dual 是 Oracle中的一个实际存在的表,任何用户均可读取,常用在没有目标表的Select语句块中 --查看当前连接用户 SQL> s ...

  5. Oracle数据库之创建表结构

    Oracle数据库之创建表结构 主键与外键 主键:关系型数据库中的一条记录中有若干个属性,若其中的某一个属性组(可以是一个属性,也可以是多个)能唯一标识一条记录,那么该属性组就是主键. 外键:关系型数 ...

  6. Oracle数据库之创建表空间与用户

    Oracle数据库之创建表空间与用户 一.创建表空间 基本语法表述: CREATE TABLESPACE tablespace_name [DATAFILE datafile_spec1 [,data ...

  7. Oracle中使用虚拟表DUAL或XMLTABLE返回顺序数列

    在Oracle中使用虚拟表DUAL或XMLTABLE返回顺序数列 使用DUAL表和CONNECT BY LEVEL的特殊用法,返回一个1-10的顺序数列,示例代码如下: SELECT LEVEL FR ...

  8. Django中ORM创建表关系

    一:django中ORM创建表关系 ORM创建外键关系 1.表与表之间的关系 1.表与表之间的关系 一对多 一对一 多对多 2.操作目标条件: 图书表 出版社表 作者表 作者详情表 3.外键关联 一对 ...

  9. 【mybatis】mybatis中insert操作,返回自增id

    需求是这样的: mybatis中insert操作,返回自增id,因为这个自增id需要给后续业务用到. 原本是这样的: 将insert语句传入,正常执行insert操作,返回int永远是 0[失败] 或 ...

随机推荐

  1. git中 .ignore文件的配置 忽略不想上传的文件

    1.配置语法: 以斜杠“/”开头表示目录: 以星号“*”通配多个字符: 以问号“?”通配单个字符 以方括号“[]”包含单个字符的匹配列表: 以叹号“!”表示不忽略(跟踪)匹配到的文件或目录: 此外,g ...

  2. svn的使用教程

    引言:这里只讲解几个svn不常用但是非常有用的使用方法,对于经常使用的不做概述,因为很简单,而且网上都能找到. 1.1 svn历史版本对比已经恢复到指定版本(myeclipse) 在项目中的文件或者文 ...

  3. 使用openpyxl实现excel文件的读取操作

    1.环境准备 python3环境.安装openpyxl模块 2.excel文件数据准备 3.为方便直接调用,本代码直接封装成类 from openpyxl import load_workbook c ...

  4. STL——set

    (转) 1.关于set C++ STL 之所以得到广泛的赞誉,也被很多人使用,不只是提供了像vector, string, list等方便的容器,更重要的是STL封装了许多复杂的数据结构算法和大量常用 ...

  5. Java 层序创建和遍历二叉树

    直接上代码 package te.com; import java.util.LinkedList; import java.util.Queue; import java.util.logging. ...

  6. leecode第五十九题(螺旋矩阵 II)

    class Solution { public: vector<vector<int>> generateMatrix(int n) { )//特殊情况 { vector< ...

  7. DAY3 数据类型与运算符

    一.注释 代码注释分单行和多行注释, 单行注释用#,多行注释可以用三对双引号""" """ 注释用于解释某一行代码的作用,增加代码的可读性 ...

  8. Lua和C++交互 学习记录之三:全局值交互

    主要内容转载自:子龙山人博客(强烈建议去子龙山人博客完全学习一遍) 部分内容查阅自:<Lua 5.3  参考手册>中文版 译者 云风 制作 Kavcc vs2013+lua-5.3.3 1 ...

  9. python实现邮件接口——smtplib模块

    1. 思路 使用脚本发送邮件的思路其实和客户端发送邮件一样,过程都是: 登录 —> 写邮件 —> 发送 只不过通过脚本发送时我们需要考虑到整个过程的方方面面.以下为思路导图: 2. Pyt ...

  10. 2017-2018-2 20165327 实验四《Android程序设计》实验报告

    2017-2018-2 20165327 实验四<Android程序设计>实验报告 任务一 Android Stuidio的安装测试: 任务要求 参考Android开发简易教程,安装 An ...