set SERVEROUTPUT ON begin For bb In (Select * From 人员表 ) Loop dbms_output.put_line(bb.姓名||'-------'||bb.id); End Loop; end;