How do I execute a stored procedure once for each row returned by query?

I have a stored procedure that alters user data in a certain way. I pass it user_id and it does it’s thing. I want to run a query on a table and then for each user_id I find run the stored procedure once on that user_id

How would I write query for this?

7 Answers
7

Leave a Comment