oracle中存储过程书写规范
来源:互联网 发布:美工电脑配置清单 编辑:程序博客网 时间:2024/06/03 14:37
create or replace procedure UpdateTestData
is
j number;
dept_min_no number;
dept_max_no number;
begin
--更新部门表
delete from test_dept;
for i in 1..10
loop
insert into test_dept(dept_name,f_deleteflag) values('部门'||i,0);
commit;
end loop;
--更新用户表
--dept_min_no:=0;
--dept_max_no:=0;
select min(f_id) into dept_min_no from test_dept;
select max(f_id) into dept_max_no from test_dept;
delete from test_user;
for i in 1..30
loop
select floor(dbms_random.value(dept_min_no,dept_max_no)) into j from dual;
insert into test_user(f_id,username,userpwd,age,sex,birthday,telephone,address,email,memo,deptid,realname,f_deleteflag)
values(i,'a'||i,'123456',i+20,'男',sysdate-365*i,'13500112233','北京市海淀区上地信息大厦',j||'@163.com','备注备注',j,'张三'||i,0);
commit;
end loop;
end UpdateTestData;
- oracle中存储过程书写规范
- Oracle存储过程书写规范和技巧
- ORACLE存储过程编码规范
- ORACLE 存储过程编程规范
- 用SQLServer2008策略审核存储过程书写规范
- 存储过程中简单事务书写方法
- oracle sql书写规范
- 书写一个存储过程
- mysql存储过程书写
- MySQL存储过程书写
- Oracle中存储过程
- oracle中存储过程
- Oracle中存储过程
- Oracle中存储过程
- oracle 存储过程中调用存储过程
- iOS中书写代码规范
- Oracle中调试存储过程
- oracle中存储过程详解
- Centos5.5安装memcached
- gmirror 使用
- 在MAVEN中配置JAVA源代码的编译版本及编码字符集
- vi的复制粘贴命令
- 关于CentOS.V4.2下并行环境搭建
- oracle中存储过程书写规范
- Connecting through Http or Https for CE/Windows Mobile c++/vc++方法一
- 在单机上安装、配置MPI 并行环境(Linux版)
- 用SQL读取CSV文件
- Android 正则表达式学习
- VS2010 VC++默认目录修改
- 在联网的多台机器上安装、配置MPI 并行环境
- qt 读写 xml 时,链接错误
- mysql null 值查询问题 (转)