Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query works but not in package

DavidNilsMay 10 2007 — edited May 14 2007
Hi,

I have this query that executes fine if I put it in a sql editor, I get a nice result set. However, when i put it in a procedure (in a package) I get the following error:

PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current ex


Why is this? The procedure uses querys from another schema, but since it works in sql editor?...

I have granted selects on all the tables in used by the SP.

Anyone?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2007
Added on May 10 2007
9 comments
870 views