I am trying to create a procedure that will list out all contents of a table but oracle tells me that the procedure has compilation errors. I am running on SQL plus. Any ideas?
CREATE OR REPLACE procedure payrollproc
BEGIN
SELECT * FROM payroll;
END;
But, I would suggest just run the select statement, a stored proc is too much work for such a basic function.