PLSQL学习笔记 一.匿名块 匿名块是指没有名称的PL/SQL. declare v_name varchar2(5);//declare就是匿名块 begin select user_name into v_name from p_user where user_id=&id;//&id为动态id dbms_output.put_line('name: '||v_name); end;