954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Dynamic Table name

Hi,
I want a variable table name in a procedure.
I thought some IN parameters can be passed like
procedure may receive a varchar table name or a number deciding which table to use for fetching data.

is it possible?

Waiting for reply.

Thanks in advance.

rdhiravani
Light Poster
37 posts since Jan 2007
Reputation Points: 10
Solved Threads: 2
 

Yes that is very much possible to do in oracle using PL/SQl.
for that u need to use dynamic SQL using EXECUTE IMMEDIATE.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You