我正在尝试运行以下 sql 查询来填充表,但无法运行它......有什么想法吗?
BEGIN
FOR n in 21500..21600 LOOP
if mod(n,2)=0
then
dbms_output.put_line(n||'even');
else
insert into port_mapping(APP,VERSION,BUSINESS,CRITICAL,SUPPORTED,TYPE,PORT,NOTE)
values("SDS","1","No","Yes","Yes","Server",n,"NA");
end if;
END LOOP;
COMMIT;
END;
我收到错误
PL/SQL:ORA-00984:此处不允许列 ORA-06550:第 8 行,第 7 列:PL/SQL:忽略 SQL 语句