Good Day,
I am trying to use a pl/sql variable in my query (I'm a sql server guy) and here is my code:
DECLARE
nextvalue integer;
BEGIN
SELECT submission_seq.currval INTO nextvalue FROM DUAL;
dbms_output.put_line('test');
dbms_output.put_line(nextvalue);
/* ERROR OCCURS HERE */
SELECT nextvalue, id FROM TABLE_STATUS;
END;
I'm getting the PLS-00428: an INTO clause is expected in this SELECT statement.
I'm not understanding why I'm getting this as I used one to populate nextvalue which does contain what I want.
Can anyone help me?
TIA,
coson