timesten中建sequence和oracle不一样的。
来源:互联网 发布:网络大电影导演招聘 编辑:程序博客网 时间:2024/06/07 10:02
Timesten语法:
CREATE SEQUENCE [Owner.]SequenceName[INCREMENT BY IncrementValue][MINVALUE MinimumValue][MAXVALUE MaximumValue][CYCLE][CACHE CacheValue][START WITH StartValue]
主要的区别应该是cycle这里,在timesten中序列默认是不重复的。跟oracle正好相反。
Indicates that the sequence number generator continues to generatenumbers after it reaches the maximum or minimum value. Bydefault, sequences do not cycle. Once the number reaches themaximum value in the ascending sequence, the sequence wrapsaround and generates numbers from its minimum value. For adescending sequence, when the minimum value is reached, thesequence number wraps around, beginning from the maximum value.If CYCLE is not specified, the sequence number generator stopsgenerating numbers when the maximum/minimum is reached andTimesTen returns an error.
oracle语法:
create sequence emp_sequence
INCREMENT BY 1 -- 每次加几个
START WITH 1 -- 从1开始计数
NOMAXVALUE -- 不设置最大值
NOCYCLE -- 一直累加,不循环
CACHE 10;
在oracle中sequence默认是重复的,要显式声明 NOCYCLE
CREATE SEQUENCE [Owner.]SequenceName[INCREMENT BY IncrementValue][MINVALUE MinimumValue][MAXVALUE MaximumValue][CYCLE][CACHE CacheValue][START WITH StartValue]
主要的区别应该是cycle这里,在timesten中序列默认是不重复的。跟oracle正好相反。
Indicates that the sequence number generator continues to generatenumbers after it reaches the maximum or minimum value. Bydefault, sequences do not cycle. Once the number reaches themaximum value in the ascending sequence, the sequence wrapsaround and generates numbers from its minimum value. For adescending sequence, when the minimum value is reached, thesequence number wraps around, beginning from the maximum value.If CYCLE is not specified, the sequence number generator stopsgenerating numbers when the maximum/minimum is reached andTimesTen returns an error.
oracle语法:
create sequence emp_sequence
INCREMENT BY 1 -- 每次加几个
START WITH 1 -- 从1开始计数
NOMAXVALUE -- 不设置最大值
NOCYCLE -- 一直累加,不循环
CACHE 10;
在oracle中sequence默认是重复的,要显式声明 NOCYCLE
- timesten中建sequence和oracle不一样的。
- oracle中映射表到timesten的方法
- Oracle中sequence的用法
- Oracle中Sequence的使用
- Oracle中Sequence的使用
- Oracle中sequence的用法
- oracle中 sequence的使用
- Oracle 中sequence的用法
- Oracle中sequence的使用方法
- Oracle中sequence的使用方法
- Oracle数据库中序列(SEQUENCE)的用法和实例需求
- Oracle中sequence的创建和sequence的触发器的创建
- Oracle TimesTen
- TimesTen计算和配置TimesTen的ttmesg日志存储空间
- Oracle 内存数据库TimesTen 的jdbc连接
- Oracle内存数据库Timesten的使用(1)
- Oracle内存数据库Timesten的使用(2)
- 设置TimesTen与Oracle数据库的连通性
- mysql中DATETIME、DATE 和 TIMESTAMP 类型数据使用
- 今天开始linux的正式学习。系统,文件系统,启动系统,编程,服务器。
- php-----ajax高级篇
- 鼠标经过行时改变gridview行的样式的功能
- ASP 一些常用方法 思路 方法小汇总
- timesten中建sequence和oracle不一样的。
- AgoBot 僵尸网络研究笔记(十三)
- 引进软件国际标准,培养高级软件人才
- Delphi初学者应小心的六大陷阱
- LCS算法:微软面试题Review
- js鼠标事件大全
- 设计
- 什么是SOA ?
- WTS分页三剑侠 介绍能给个或能帮忙解决分页问题