I have this simple SELECT procedure:
create or replace PROCEDURE CST_FEEDBACK
(
LineID IN Integer
) AS
BEGIN
SELECT
T1.*
-- , Mgr.UserName as UserName
FROM F_Feedback T1
--LEFT JOIN tblUsers Mgr
--ON T1.EmpID = Mgr.EmpID
WHERE
T1.Line_ID = LineID
ORDER BY T1.Comments_TS DESC;
END CST_FEEDBACK;
I am an Oracle n00b, we were using SQL Server in our shop but were suddenly forced to switch to Oracle. I'm getting this message when I try to compile it:
Error(7,1): PLS-00428: an INTO clause is expected in this SELECT statement
Can anyone tell me why this is happening, and if there's some way to get around it?