我已经从http://www.oracle-base.com/articles/misc/dml-returning-into-clause.php
复制并粘贴了此内容但是这段代码在执行时会继续......
SET SERVEROUTPUT ON
DECLARE
TYPE t_tab IS TABLE OF t1.id%TYPE;
l_tab t_tab;
BEGIN
EXECUTE IMMEDIATE 'UPDATE t1
SET description =' ||'description '||'
RETURNING id INTO :l_tab'
RETURNING BULK COLLECT INTO l_tab;
FOR i IN l_tab.first .. l_tab.last LOOP
DBMS_OUTPUT.put_line('UPDATE ID=' || l_tab(i));
END LOOP;
COMMIT;
END;
代码中有错误或错误吗?
答案 0 :(得分:1)
您必须在PL / SQL块的末尾添加/
才能执行它。