Mega Code Archive

 
Categories / Oracle PLSQL / Cursor
 

Write an implicit cursor in a FOR loop and use the data

SQL> BEGIN   2    FOR i IN (SELECT item_title FROM item) LOOP   3      dbms_output.put_line('The title is ['||i.item_title||']');   4    END LOOP;   5  END;   6  / SQL>