MySQL Forums
Forum List  »  Stored Procedures

stored procedure to return a subset of rows
Posted by: Mike McPherson
Date: October 14, 2017 03:05AM

how do I return a subset of rows from a select statement/
a simple filter won't work
One of the field is a comma separated list of groups
Input parameter is a comma separated list of groups for this user

I only want to return the rows where any of the user groups match any of the row groups

I'm ok doing the filtering, but how do I return only the rows that match (or skip the ones that don't)?

I thought about writing the good rows to a temporary table, but is there a better way?
thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
stored procedure to return a subset of rows
3234
October 14, 2017 03:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.