
Oracle
天道·乾坤
这个作者很懒,什么都没留下…
展开
-
如何在游标for循环中使用动态SQL语句?
转自 http://bbs.youkuaiyun.com/topics/100131375 原文标题:如何在游标for循环中使用动态SQL语句? 定义一个ref cursor,然后open refcur for sqlstr,例如 -- Created on 2006-8-22 by ADMINISTRATOR declare -- Local variables here i转载 2016-03-08 08:45:21 · 852 阅读 · 0 评论 -
Oracle中四种循环(GOTO、For、While、Loop)
转载 http://www.2cto.com/database/201309/241076.html [sql] DECLARE x number; BEGIN x:=9; > --循环点 x:=x-1; DBMS_OUTPUT.PUT_LINE(X); IF X>0 TH转载 2016-03-08 08:36:03 · 1017 阅读 · 0 评论