一. PL/SQL 与 SQL的交互
1. 使用select语句.into是必须的, 查询只能返回一条或0条数据

    declare
       v_fname 
employees.first_name%TYPE;  
--更正规的写法
       --v_fname 
varchar2(25);
    
begin
       select first_name into 
v_fname
       from employees where 
employee_id=200;
       
DBMS_OUTPUT.PUT_LINE(‘First Name is: ‘ || v_fname);
    
end;
2.Insert
 
3. Update

Oracle PL\SQL 基础学习三,布布扣,bubuko.com
原文:http://www.cnblogs.com/shawn-wang/p/3747187.html