我有這條SQL語句,但我不知道如何在Oracle中編寫它(Oracle不支持多表更新):我該如何寫這個查詢從MySQL(SQL)到Oracle(SQL)
UPDATE sscanner.sis_emp_card ec, sscanner.sis_cards c, sscanner.sis_employees e
SET e.firstname='x', e.lastname='y', e.car_number=NULL, c.card_number='12345', e.email='[email protected]', ec.active='1'
WHERE ec.id_card = c.id_card AND ec.id_emp=e.id_employee AND id=1;
sis_cards:id_card(PK)..
sis_employees:id_employee(PK)..
sis_emp_card:ID(PK),id_card(FK)引用sis_cards,id_employee(FK)引用sis_employees
工程就像一個魅力。 –