I'm wondering if it is possible to pass multiple values into a single stored procedure parameter.
As an example let's say I have a stored procedure that returns the number of hours a person has worked when passed in an ID. Would it be possible to pass in multiple ID's (perhaps an array), and somehow use a for loop to select the relevant records to come up with the total hours worked for all the people whose ID's we passed in?
Just a thought - could it be done through a ref cursor? Some stored procs that I've done have used a ref cursor as an IN/OUT parameter to pass out the records.
Any ideas would be appreciated!
Diane
As an example let's say I have a stored procedure that returns the number of hours a person has worked when passed in an ID. Would it be possible to pass in multiple ID's (perhaps an array), and somehow use a for loop to select the relevant records to come up with the total hours worked for all the people whose ID's we passed in?
Just a thought - could it be done through a ref cursor? Some stored procs that I've done have used a ref cursor as an IN/OUT parameter to pass out the records.
Any ideas would be appreciated!
Diane