returning是执行完插入后返回插入记录的信息用的。你这个语句是执行完插入后把rowid返回到一个row_id的变量dname || ':' || to_char (deptno) || ':' || loc返回到info变量中||在oracle中是连接字符串的意思DBMS_OUTPUT.PUT_LINE是打印字符串
前面加上:set serveroutput on returning就是 “swangooth”回答的那样。