2010-09-26 12 views

Répondre

3

Vous ne pouvez mettre à jour un tableau. Ainsi, vous pouvez changer votre SQL à ce qui suit:

UPDATE tableA a 
SET a.addr = 'aaa' 
WHERE exists 
    (SELECT b.id 
     FROM tableB b 
     WHERE b.id = a.id)