crystalhelp
Programmer
I created a stored procedure that looks like this:
CREATE OR REPLACE PROCEDURE procname
( --declare parameters) AS
--declare variables
begin
--assign value to variables
SELECT
FROM
WHERE
UNION
SELECT
FROM
WHERE
UNION
SELECT
FROM
WHERE;
--I don't need an order by on the union
END procname;
--
That's it. It's pretty simple. But I get the message 'PLS-00428: an INTO clause is expected in this SELECT statement'. Is that true? Obviously it is, but I don't see why. Is there some other way I can do this?
CREATE OR REPLACE PROCEDURE procname
( --declare parameters) AS
--declare variables
begin
--assign value to variables
SELECT
FROM
WHERE
UNION
SELECT
FROM
WHERE
UNION
SELECT
FROM
WHERE;
--I don't need an order by on the union
END procname;
--
That's it. It's pretty simple. But I get the message 'PLS-00428: an INTO clause is expected in this SELECT statement'. Is that true? Obviously it is, but I don't see why. Is there some other way I can do this?