Bind Variables: only possible through Dynamic SQL (EXECUTE IMMEDIATE or DBMS_SQL)? [message #60689] |
Wed, 25 February 2004 23:42 |
Patrick Tahiri
Messages: 119 Registered: January 2004
|
Senior Member |
|
|
Hi,
I'm using extensively PL/SQL with stored procedure in my packages.
Can we just apply the "bind variables" technique with dynamic SQL within EXECUTE IMMEDIATE or DBMS_SQL? Or can we bind variables using static SQL within my stored procedures?
In peak time, my processes performs heavy inserts (and select)on a couple of tables via these packages.stored_procerdures, so it's really important for me to use bind variables! So I can avoid to have many query plans, hard parses and latches when I'm executing exactely the same insert or select statements (in peak time, the are executed many/a lot of times). Is then best to use DBMS_SQL or EXECUTE IMMEDIATE method?
Thank you for your tips and advices!
Regards,
Patrick Tahiri.
|
|
|
|
|