If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

There you go again asking people to fix your code rather than asking what is wrong.

In PL/SQL blocks the procedure/function statement is equivalent to the DECLARE statement. IF YOU READ THE DOCUMENTATION http://download-west.oracle.com/docs...oview.htm#7106 (page 1 I might add) you would find out that variable declarations always come after a {declare} statement and before the BEGIN. When you read about functions/procedure you will find that they do not use a declare