您的位置:首页 > 数据库 > Oracle

『ORACLE』 PLSQL更新数据示例(11g)

2017-05-16 22:03 183 查看
SQL> select * from dept1 where deptno=20;

DEPTNO DNAME LOC
---------- -------------- -------------
20 RESEARCH DALLAS

SQL> declare
2 v_deptno dept.deptno%TYPE :=20;
3 V_loc dept.loc%TYPE :='BEIJING';
4 begin
5 update dept1 set loc=v_loc where deptno=v_deptno;
6 end;
7 /

PL/SQL procedure successfully completed.

SQL> select * from dept1 where deptno=20;

DEPTNO DNAME LOC
---------- -------------- -------------
20 RESEARCH BEIJING
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  11g plsql 更新数据
相关文章推荐