Originally posted by amit_ahuja i want to create a procedure, where i can pass values like:
my_proc('x','y',('a','b','c'))
how it can be done? has anybody worked on this kind of problem?
thanks and regards,
Amit Ahuja
Hi,
I just want to know that what is the use of sending the parameters like this..u can send them as separate parameters.
Any special task by sending like this.
Take Care.
hi everybody!
thanks a lot for your concern and suggesting me the solution.
the actual problem that i'm facing is:
We have a stored procedure in which we want to pass a comma delimited list as one of the parameters. Inside the stored procedure I would like to use that list as part of a where clause using "in (commalist)". Howver
this raises an invalid number error.
The only two methods we can think of for such a
small query are:
1) Loop through the list to build some sort of a cursor containing each value in its own row then using that cursor in the query.
2) Build dynamic SQL and EXECUTTE IMMEDIATE it into a temporary table.
Then OPEN CURSOR FOR Select from that table.
If you can think of a less painful method please let me know.
Bookmarks