*如果雇員姓名與部門名稱中有一個或一個以上相同的字母,則該雇員的COMM增加500。 update my_emp a set comm=NVL(comm,0)+500 where a.ename<>( select translate(a.ename,b.dname,CHR(27)) from my_dept b where b.deptno=a.deptno ); --a.deptno與b.deptno必須有主外鍵連接,否則可能出錯,為什么? commit;
uj5u.com熱心網友回復:
表結構說下,用 create table 形式的。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/44699.html
標籤:基礎和管理
