mysql與orale語法不一致,mysql一次能夠更新多個表,依據這個特性,能夠用如下變通方法實現update select.mysql
UPDATE TEST SA,
(
SELECT
SU.userid,
SU. PASSWORD
FROM
SEC_USER SU
WHERE
SU.userid = 'cjf'
) SU1
SET SA. usercode = SU1.userid,
SA. password = SU1. PASSWORD
WHERE
SUBSCRIBE_ASK_ID = 'SAI201401151108410029'sql