|
Re: Excute Procedure When Value Is In Variable [message #439027 is a reply to message #439025] |
Wed, 13 January 2010 12:12 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
You need to use dynamic sql. However dynamic sql can't be run directly in forms (if i remember rightly), so you're going to have to create a database procedure that'll call the other procedure dynamically (using execute immediate) and call that from your form.
That said, dynamic code of this sort is always a colossal pain to code/maintain/debug so I'd look long and hard for a way to make it non dynamic if I was you. Which would mean not storing procedure names in variables obviously.
|
|
|
|