摘要: 今天来说下Oracle中的循环迭代处理,因为从自己的博客统计中看到,不少网友都搜索了关键字"SQL FOR循环",所以打算在这里说下个人的理解。 PL/SQL也和我们常用的编程语言一样,提供了While、For等循环,我们建几个例子来说明演示下。 首先是While循环:--while循环procedure loop_while( start_value in number, end_value in number)is current_value number := start_value;begin while current_value <=end_value l 阅读全文
posted @ 2014-01-24 12:35 Alexander 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: http://blog.itpub.net/20948385/viewspace-691398对于一般的select操作,如果使用动态的sql语句则需要进行以下几个步骤:open cursor---> parse---> define column---> excute---> fetch rows---> close cursor;而对于dml操作(insert,update)则需要进行以下几个步骤:open cursor---> parse---> bind variable---> execute---> close cursor;对 阅读全文
posted @ 2014-01-24 12:33 Alexander 阅读(1099) 评论(0) 推荐(0) 编辑