Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Need to write a procedure that returns rows like a 'SELECT *' from any table
Hi all,
We are using Oracle 9i database for our product that deals with financial solutions. We are using an ASP.NET application and this application contains many DROPDOWNLISTs. Each of these drop down lists is associated with a 'MASTER TABLE' (we call them 'CODE TABLE's) in the DB - an one-to-one relationship.
Initially, we had only one client, and now we are moving to multiple clients. Depending on the active client, the contents of 'SOME OF' these DROPDOWNLISTs may differ. So, we need to add an extra column in some of these CODE TABLEs. This column will contain a 'comma-separated list' of client ids which 'DO NOT NEED' this particular value to be shown. But our application uses a very generic function (written in C#) to read all these CODE TABLEs using a 'SELECT * FROM [tablename]'. Now, I want to replace this SQL with a procedure, passing the tablename and the client id as input parameters. This procedure should:
I am not a database guy, and has absolutely no idea how to do that. Please help me.
Regards,
Jeevan.
Received on Thu May 25 2006 - 06:52:12 CDT