Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 SQL Server 存储过程中使用了游标和提取函数
OPEN Cursor1 FETCH NEXT FROM Cursor1 INTO @RegionId
但是如何在 Oracle 存储过程中做同样的事情。请帮忙
下面是如何在 Oracle 中使用 Cursor 的示例...
DECLARE CURSOR Cursor1 IS ...Some sql statement.... BEGIN OPEN Cursor1; LOOP FETCH Cursor1 INTO RegionId; EXIT WHEN Cursor1%NOTFOUND; ...... END LOOP; CLOSE Cursor1; END;