Oracle存储过程基本语法
来源:互联网 发布:js格式化数字 编辑:程序博客网 时间:2024/06/08 18:06
http://www.cnblogs.com/hero4china/articles/base_rule_oracle_procedure.html
分享下,自己写的一个批量插入数据
declaresim_s varchar2(100);sim_e varchar2(200);sim_nail varchar2(20);ch_l number;i number;begin sim_s:='8986010960516039'; i:=0; loop ch_l:=length(to_char(i)); if ch_l=1 then sim_nail:='00' || to_char(i); elsif ch_l=2 then sim_nail:='0' || to_char(i); else sim_nail:=to_char(i); end if; sim_e:=sim_s || sim_nail; insert into i_sim(sim_id) values (sim_e); i := i+1; exit when i>999; end loop; commit; exception when others then rollback;end;
0 0
- oracle 存储过程基本语法
- oracle存储过程基本语法
- ORACLE存储过程----基本语法
- oracle存储过程基本语法
- oracle 存储过程基本语法
- oracle 存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- oracle 存储过程基本语法
- oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- Oracle存储过程基本语法
- 如何用好winXP的“本地安全策略”
- linux samba搭建
- 从多线程安全角度看public修饰符的使用
- MFC 键盘响应
- 在Linux里设置环境变量的方法(export PATH)
- Oracle存储过程基本语法
- 使用Toast
- TCP/IP,http,socket,长连接,短连接——小结。
- Eclipse安装Freemarker插件
- NASA发现人类史上最大黑洞 质量为太阳400亿倍
- SQL Server 2008 自动备份数据库 .
- SAP SD 销售佣金在Billing中预提
- 数据库表设计三大范式原则
- java中相对路径