Re: Nested blocks in PL/SQL

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Fri, 6 Feb 2004 18:18:07 -0500
Message-ID: <86-dnbmYwfhMwbndRVn-jg_at_comcast.com>


"Mourad" <mourad_barakat_at_yahoo.com> wrote in message news:6554b826.0402061410.7355e091_at_posting.google.com...
| Hi all,
|
| This is an example of a nested block, however it seems Oracle doesn't
| like the syntax. see the error below:
|
| declare
| begin
| declare
| begin
|
| end; -- <<< causes error!! any idea
| end;
|
| ERROR at line 5:
| ORA-06550: line 5, column 7:
| PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of
| the
| following:
| begin case declare exit for goto if loop mod null pragma
| raise return select update while with <an identifier>
| <a double-quoted delimited-identifier> <a bind variable> <<
| close current delete fetch lock insert open rollback
| savepoint set sql execute commit forall merge
| <a single-quoted SQL string> pipe
|
|
|
| Thanks in advance,
|
| Mourad

you'll need to post the actual code that caused the error, what you posed does not show what is actually happening (ie, the error is on EXCEPTION, you have no EXCEPTION in what you posted) Received on Sat Feb 07 2004 - 00:18:07 CET

Original text of this message