確定。我調整了這一點,現在它工作。這是我的代碼,可以正常工作:
DECLARE
x_out SYS_REFCURSOR;
col1 number;
col2 VARCHAR2(255);
col3 VARCHAR2(255);
col4 Date;
col5 VARCHAR2(255);
col6 VARCHAR2(255);
col7 number;
col8 number;
col9 number;
col10 number;
BEGIN
DDTMS.PKG_ADMIN.GETPROCESSACTIONS('NV', 401334, x_out);
LOOP
FETCH x_out INTO col1, col2, col3, col4, col5, col6, col7, col8, col9, col10;
DBMS_OUTPUT.Put_Line ('co1_1: '||col1||' col_2: '||col2||'co1_3: '||col3||' col_4: '||col4||' co1_5: '||col5||' col_6: '||col6||' co1_7: '||col7||' col_8: '||col8||' co1_9: '||col9||' col_10: '||col10);
EXIT WHEN x_out%NOTFOUND;
END LOOP;
END;
如果您將BEGIN ... END;周圍? – Baodad
你可以嘗試在每行的末尾加上分號,除了BEGIN – Baodad