Quote:
Originally posted by chrisrlong
Now, I haven't even looked at the actual SQL, but the very first response to this problem should have been to put the SQL in a string and run it as dynamic SQL inside the PL/SQL. There are two different SQL engines in 8i, and the one for straight SQL is well ahead of the one for PL/SQL. So anything that works in SQL*Plus but not in PL/SQL simply needs to be converted to dynamic SQL to work.
- Chris
That's fine as a quick workaround, but there's overhead associated with repeatedly running it as dynamic SQL, no? A better approach is to rewrite it to a form that the PLSQL SQL engine can handle, I would think.