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 51CTO博客,原文链接:http://blog.51cto.com/2347979/1197385,如需转载请自行联系原作者
相关文章
|
17天前
|
开发框架 .NET C#
C#|.net core 基础 - 删除字符串最后一个字符的七大类N种实现方式
【10月更文挑战第9天】在 C#/.NET Core 中,有多种方法可以删除字符串的最后一个字符,包括使用 `Substring` 方法、`Remove` 方法、`ToCharArray` 与 `Array.Copy`、`StringBuilder`、正则表达式、循环遍历字符数组以及使用 LINQ 的 `SkipLast` 方法。
|
2天前
|
JSON C# 开发者
C#语言新特性深度剖析:提升你的.NET开发效率
【10月更文挑战第15天】C#语言凭借其强大的功能和易用性深受开发者喜爱。随着.NET平台的演进,C#不断引入新特性,如C# 7.0的模式匹配和C# 8.0的异步流,显著提升了开发效率和代码可维护性。本文将深入探讨这些新特性,助力开发者在.NET开发中更高效地利用它们。
9 1
|
8天前
|
存储 Oracle 关系型数据库
【数据库-DB2】深入了解DB2 reorg
本文介绍了DB2数据库中reorg操作的重要性,旨在通过重组表数据来消除数据碎片、压缩信息并提高数据访问速度。reorg操作能够根据索引关键字重新排序数据,减少查询I/O次数,提升查询性能。文章详细讲解了reorg的操作步骤、适用场景及注意事项,强调了在执行reorg前后更新统计信息的必要性。
14 2
|
14天前
|
存储 消息中间件 NoSQL
Redis 入门 - C#.NET Core客户端库六种选择
Redis 入门 - C#.NET Core客户端库六种选择
48 8
|
9天前
|
人工智能 开发框架 C#
C#/.NET/.NET Core技术前沿周刊 | 第 6 期(2024年9.16-9.22)
C#/.NET/.NET Core技术前沿周刊 | 第 6 期(2024年9.16-9.22)
|
8天前
|
人工智能 开发框架 Cloud Native
C#/.NET/.NET Core技术前沿周刊 | 第 9 期(2024年10.07-10.13)
C#/.NET/.NET Core技术前沿周刊 | 第 9 期(2024年10.07-10.13)
|
8天前
|
开发框架 前端开发 API
C#/.NET/.NET Core优秀项目和框架2024年9月简报
C#/.NET/.NET Core优秀项目和框架2024年9月简报
|
9天前
|
开发框架 NoSQL MongoDB
C#/.NET/.NET Core开发实战教程集合
C#/.NET/.NET Core开发实战教程集合
|
8天前
|
数据可视化 NoSQL C#
C#/.NET/.NET Core技术前沿周刊 | 第 8 期(2024年10.01-10.06)
C#/.NET/.NET Core技术前沿周刊 | 第 8 期(2024年10.01-10.06)
|
9天前
|
开发框架 缓存 算法
开源且实用的C#/.NET编程技巧练习宝库(学习,工作,实践干货)
开源且实用的C#/.NET编程技巧练习宝库(学习,工作,实践干货)