Guest_imported
New member
- Jan 1, 1970
- 0
i am trying to write a program that will accept a dynamic number of user inputs for one parameter. for example
if a user inputs 'smith, jones, williams'
my program will break this string up and query the database for all of the entries relating to these 3 employees.
does anyone know how id create a cursor thatd accpet a dynamic number of inputs for a parameter like this. is there a way to do a loop and have something like
'AND emp_name = x'
keep getting added on to the end of the where clause?
while x keeps changing as i loop though and parse the string.
can anyone help a brutha out?
Thanks.
lance
if a user inputs 'smith, jones, williams'
my program will break this string up and query the database for all of the entries relating to these 3 employees.
does anyone know how id create a cursor thatd accpet a dynamic number of inputs for a parameter like this. is there a way to do a loop and have something like
'AND emp_name = x'
keep getting added on to the end of the where clause?
while x keeps changing as i loop though and parse the string.
can anyone help a brutha out?
Thanks.
lance