in a new stored procedure, i want to so a 'select ID from table' to get all of the IDs in the table, and then run an existing SP for each ID. Seems simple enough, but then so am I.
Stored procedures is one of these areas where many dbms products are far from ANSI compliant. The ANSI term for stored procedures is Persistent Stored Modules (PSM), and were included in the standard in 1996.
You may "run" an existing PSM function(!) for each row in a SELECT result-set, e.g.:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.