摘要: 1、Oracle 创建序列:create sequence xxxx 注:Oracle中的序列并不是和MySQL中的自增长一样,连续性的,而是跳跃、不连续性的。如要使他连续,则必须指定相关的属性和值。 1 create sequence student_id 2 minvalue 1 --最小值 3 阅读全文
posted @ 2018-01-11 17:30 DSHORE 阅读(46185) 评论(0) 推荐(1) 编辑
摘要: 1、MySQL 1.1、建表 auto_increment:每插入一条数据,客户表(customers)的主键id就自动增1,如下所示 1 create table customers -- 创建客户表 2 ( 3 id int auto_increment primary key not null 阅读全文
posted @ 2018-01-11 10:35 DSHORE 阅读(3433) 评论(0) 推荐(1) 编辑