pl/sql编程可以declare v_name varchar(20);begin select name into v_name from student where id=2; select * from student where name=v_name;end;