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

本文提供了一套用于DB2数据库的序列创建脚本,涵盖了从权限管理到工作流程等不同场景所需的各种序列,便于快速初始化数据库环境。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值