Re: Why do stored procedures limited to Select stmt to 1 OUT parameter?

2011-02-28 Thread mos
At 03:36 PM 2/28/2011, Michael Dykman wrote: One statement will do: SELECT Min(prod_price) , Max(prod_price), Avg(prod_price) INTO pl, ph, pa from products; - michael dykman Michael, Brilliant! Thanks. :-) Mike On Mon, Feb 28, 2011 at 4:30 PM, mos wrote: > I want to have a store

Re: Why do stored procedures limited to Select stmt to 1 OUT parameter?

2011-02-28 Thread Michael Dykman
One statement will do: SELECT Min(prod_price) , Max(prod_price), Avg(prod_price) INTO pl, ph, pa from products; - michael dykman On Mon, Feb 28, 2011 at 4:30 PM, mos wrote: > I want to have a stored procedure that returns 5 columns from a table and do > some calculations on it. But when I tr

Why do stored procedures limited to Select stmt to 1 OUT parameter?

2011-02-28 Thread mos
I want to have a stored procedure that returns 5 columns from a table and do some calculations on it. But when I try it, it complains there is a syntax error on the 2nd "INTO" clause. It appears I can have only 1 INTO clause per SQL statement. That means I have to execute 5 different SQL stateme