【发布时间】:2018-10-08 07:17:43
【问题描述】:
这可以在“forall”中转换这个“for”吗?
FOR tempCounter in tempCollection.FIRST .. tempCollection.LAST LOOP
IF tempCollection(tempCounter).execactstockkey IS NULL THEN
RETURN;
END IF;
INSERT INTO tbexectempactstock VALUES tempCollection(tempCounter);
END LOOP;
我也试过了
FORALL tempCounter in tempCollection.FIRST .. tempCollection.LAST
INSERT WHEN tempCollection(i).execactstockkey IS NOT NULL
THEN INTO tbexectempactstock VALUES tempCollection(tempCounter);
但它弹出我缺少 SELECT KEYBOARD
【问题讨论】:
标签: oracle for-loop plsql null forall