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

相关文章:

  • 2021-07-04
  • 2021-07-10
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-10-08
  • 2021-09-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案