Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Execute Immediate and bind variables
Thanks Matthias, I see what you are saying. So I can just use the
parameter as it comes into the stored procedure:
Execute Immediate 'SELECT ' || SCHEMA_NAME || '.theTableName.theField
> AS THE_FIELD, ' || ... etc
I'm still getting an error testing the SP from SQLPlus: BEGIN MY_QRY (schemaName); END;
*
ORA-06550: line 1, column 27: PLS-00201: identifier 'schemaName' must be declared ORA-06550: line 1, column 7:
Permissions problem, maybe??
Thanks Received on Wed Aug 10 2005 - 17:01:36 CDT
![]() |
![]() |