oracle 中序列的创建和使用
来源:互联网 发布:java 如何实现国际化 编辑:程序博客网 时间:2024/05/01 03:50
创建序列
create sequence seq_a minvalue 1000 maxvalue 99999999 start with 1000
increment by 1 nocache;
查询序列
select seq_a.nextval from dual;
为每张表生成对应的序列
--创建存储过程
create or replace procedure p_createseq(tablename in varchar2)
is
strsql varchar2(500);
begin
strsql:='create sequence seq_'||tablename||' minvalue 1000 maxvalue 99999999 start with 1000 increment by 1 nocache';
execute immediate strsql;
end p_createseq;
/
--创建序列
exec p_createseq('t_power');
exec p_createseq('t_roler');
exec p_createseq('t_roler_power');
exec p_createseq('t_department');
exec p_createseq('t_quarters');
exec p_createseq('t_quarters_roler');
exec p_createseq('t_emp');
exec p_createseq('t_require_plan');
exec p_createseq('t_require_minutia');
exec p_createseq('t_require_audit');
exec p_createseq('t_engage');
exec p_createseq('t_home');
exec p_createseq('t_education');
exec p_createseq('t_works');
exec p_createseq('t_skill');
exec p_createseq('t_account');
exec p_createseq('t_licence');
exec p_createseq('t_title');
exec p_createseq('t_remove');
exec p_createseq('t_train');
exec p_createseq('t_pact');
exec p_createseq('t_assess');
exec p_createseq('t_attendance');
exec p_createseq('t_reward_punish');
exec p_createseq('t_dimission');
exec p_createseq('t_emp_roler');
exec p_createseq('t_code');
- oracle 中序列的创建和使用
- oracle序列的创建、删除和使用
- orcale 中序列的使用和创建
- Oracle中序列和触发器的使用
- Oracle中序列和触发器的使用
- oracle 中序列的创建
- Oracle中索引的创建和使用
- oracle中视图的创建和使用
- oracle中创建序列以及序列使用注意事项
- oracle中创建序列以及序列使用注意事项
- oracle 中创建序列
- oracle中创建序列
- ORACLE中序列的使用
- Oracle中序列的使用
- oracle中序列的使用
- ORACLE中序列的使用
- Oracle创建序列,序列的语法格式及使用和查询
- oracle 序列的创建与使用
- 什么是Windows能干而Linux干不了的?(3)
- 什么是Windows能干而Linux干不了的?(4)
- [转]JS+DOM的通用性
- 什么是Windows能干而Linux干不了的?(5)
- 在对话框中使用picture control显示静态图片的方法
- oracle 中序列的创建和使用
- 多文档下创建自定义视图(view)
- 测试
- flash读取外部TXT文件
- 调试相关---多线程问题
- SQl技巧
- 如何将datagrid控件绑定的数据导出到excel中
- How to invoke the method of managed bean and render view in JSF when we are outside the lifecycle of JSF
- JS操作IE