CREATE OR REPLACE FUNCTION DELETE_ALL_STUDENTS RETURN NUMBER AS
BEGIN
DELETE FROM STUDENTS;
END;
Above is my function which i believe works fine. Here is my procedure:
CREATE OR REPLACE PROCEDURE DELETE_ALL_STUDENTS_VIASQLDEV AS
BEGIN
dbms_output.put_line('--------------------------------------------');
dbms_output.put_line('Deleting all customer rows);
END;
For some reason when i run this procedure i keep getting error: PLS-00103.
Anyone know whats wrong with my code?I want the code to delete all records from the student table and then in the script output window i want it to display the hyphens and then:
'deleting all student rows'.