G
Guest
Hello
I have a query that filters on StaffID based on the values returned by the
function getStaffList.
What i need to happen is that if the user is able to see ids 1, 2,5 then the
where cluase of the query become "Where staffID = 1 OR 2 OR 5"
the string "1 or 2 or 5' is returned by the function however its not working
because (i assume), the query is treating the full thing as a string.
is there any way to accomplish this? its a secured db so i cant just change
the query definition in code.
thanks.
I have a query that filters on StaffID based on the values returned by the
function getStaffList.
What i need to happen is that if the user is able to see ids 1, 2,5 then the
where cluase of the query become "Where staffID = 1 OR 2 OR 5"
the string "1 or 2 or 5' is returned by the function however its not working
because (i assume), the query is treating the full thing as a string.
is there any way to accomplish this? its a secured db so i cant just change
the query definition in code.
thanks.