C#.NET通用权限管理在DB2数据库上运行的脚本参考 - 序列创建脚本参考

简介:
+关注继续查看

C#.NET通用权限管理DB2数据库上运行时,需要创建一些序列,脚本如下:

若您用到了DB2数据库直接运行这个脚本就可以了,不用每个都自己创建了。

create sequence SEQ_BASE_TABLECOLUMNS as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_SEQUENCE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_LOG 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_EXCEPTION 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_FILE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_FOLDER 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_ITEMS 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_MESSAGE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_MODULE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_ORGANIZE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_PARAMETER 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_PERMISSIONITEM 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_PERMISSIONSCOPE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_PERMISSION 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_ROLE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_STAFF 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_USERADDRESS 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_USERORGANIZE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_USERROLE 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_USER 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_WORKFLOWACTIVITY 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_WORKFLOWCURRENT 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_WORKFLOWHISTORY 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;
create sequence SEQ_BASE_WORKFLOWPROCESS 
as bigint start with 1000000 increment by 1 minvalue 10000 maxvalue 99999999999999999 cycle cache 20 order;

本文转自jirigala_bao 51CTO博客,原文链接:http://blog.51cto.com/jirigala/812617

相关文章
|
15天前
|
弹性计算 API 数据库
阿里云RPA的执行脚本可以操作数据库
阿里云RPA的执行脚本可以操作数据库
41 1
|
3月前
|
SQL 存储 XML
数据库视频第四章(sql server 2008数据类型、对于表的管理、规则的创建与删除)
数据库视频第四章(sql server 2008数据类型、对于表的管理、规则的创建与删除)
28 0
|
4月前
|
SQL 关系型数据库 MySQL
【解决方案 二十四】如何对MySQL数据表批量执行操作
【解决方案 二十四】如何对MySQL数据表批量执行操作
55 0
|
4月前
|
关系型数据库 MySQL 数据库连接
关于如何使用命令行新建数据库的解决方案
关于如何使用命令行新建数据库的解决方案
38 0
|
11月前
|
SQL 算法 安全
【MySQL】数据库视图的介绍、作用、创建、查看、删除和修改(附练习题)
文章目录 1 视图的介绍与作用 2 视图的创建 3 视图的修改 4 视图的更新 5 视图的重命名与删除 6 视图的练习 6.1 数据准备 6.2 查询平均分最高的学校名称 写在最后
【MySQL】数据库视图的介绍、作用、创建、查看、删除和修改(附练习题)
|
关系型数据库 MySQL 数据库
数据库学习-表的创建作业示例【带源码】
MySQL数据库 “表的创建 ” 习题示例,包含源码,能建立起对于表的创建的基本概念
91 0
数据库学习-表的创建作业示例【带源码】
|
关系型数据库 MySQL 数据库
数据库学习-新增数据作业示例【带源码】
MySQL数据库 “新增数据 ” 习题示例,包含源码,能建立起对于新增数据的基本概念
78 0
数据库学习-新增数据作业示例【带源码】
|
关系型数据库 MySQL 数据库
数据库学习-视图作业示例【带源码】
MySQL数据库 “视图” 习题示例,包含源码,能建立起对于视图的基本概念
104 0
数据库学习-视图作业示例【带源码】
|
关系型数据库 MySQL 数据库
数据库学习-视图的应用 作业示例【带源码】
MySQL数据库 “视图的应用” 习题示例,包含源码,能建立起对于视图的应用的基本概念
75 0
数据库学习-视图的应用 作业示例【带源码】
|
数据库
LeetCode(数据库)- 寻找没有被执行的任务对
LeetCode(数据库)- 寻找没有被执行的任务对
61 0
推荐文章
更多