0
我得到錯誤:綁定變量「一個」未聲明在SQL合併語法如何通過用戶參數
MERGE INTO EMP E1
USING (SELECT E2.EMPNO,E2.SAL FROM EMP2 E2 WHERE E2.EMPNO=:a)
ON
(E1.EMPNO=E2.EMPNO)
WHEN MATCHED THEN
UPDATE SET
E1.SAL=E2.SAL
WHEN NOT MATCHED THEN
INSERT VALUES(E2.EMPNO,E2.ENAME,E2.JOB,E2.MGR,E2.HIREDATE,E2.SAL,E2.COMM,E2.DEPTNO);
你怎麼想運行這個? – 2011-02-09 06:00:51