2013年11月26日
摘要: create or replace procedure pr_zhaozhenlong_loop/*名称:在存储过程中执行3种循环语句功能:利用循环给表中插入数据调用: begin -- Call the procedure pr_zhaozhenlong_strsql; end; 创建人:赵振龙创建时间:2007-01-03*/is i int;begin i :=1; loop insert into tb_zhaozhenlong(rpt_date ,dept_id,item,qty) va... 阅读全文
posted @ 2013-11-26 14:08 little fat 阅读(4681) 评论(0) 推荐(0) 编辑
摘要: 完成批量修改user_tables中的所有表的栏位名(从MS SQL导入过来,发现大小写问题,造成很多麻烦) 存储过程见下:-- Created on 2012/3/14 by FREEdeclare -- Local variables here Cursor tbl_cur is select table_name from user_tables; --col_cur Cursor; i integer; tbl_name varchar2(50); col_name varchar2(50);begin -- Test statements here for tbl_n... 阅读全文
posted @ 2013-11-26 14:07 little fat 阅读(8626) 评论(0) 推荐(0) 编辑