Preview:
declare
	cursor c1 is select * from employ ;
	e employ%rowtype;
begin
	 close c1;
exception 
    when invalid_cursor then
      dbms_output.put_line('invalid cursor');
end;
/
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter