오라클 10g R2에서 대답은 예, 커서 정의가 허용되지 않는 경우에도 item_list_1과 item_list_2의 항목간에 순서가 지정되어야합니다 ( ).
는 예를 들어, 프로 시저 정의는 변수 선언하기 전에 허용되지 않습니다 :
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> declare
2 variable_declaration number;
3 procedure procedure_definition is begin
4 null;
5 end procedure_definition;
6 begin
7 null;
8 end;
9/
PL/SQL procedure successfully completed.
SQL> declare
2 procedure procedure_definition is begin
3 null;
4 end procedure_definition;
5 variable_declaration number;
6 begin
7 null;
8 end;
9/
variable_declaration number;
*
ERROR at line 5:
ORA-06550: line 5, column 5:
PLS-00103: Encountered the symbol "VARIABLE_DECLARATION" when expecting one of the following:
begin function package pragma procedure form
ORA-06550: line 8, column 4:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
end not pragma final instantiable order overriding static
member constructor map
11gR2에 있었습니까? 나는 11gR2를 가지고 있지 않다. 당신이 묘사하는 것이 10g2의 행동 인 것으로 보인다. 나의 답안의 오류 메시지와 일치한다. 또한 10gR2 설명서에 설명 된 동작입니다. http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/block_declaration.htm#sthref2482 –
예, 10gR2에있었습니다. 나는 월요일까지 11gR2를 만질 수 없을 것이다. –