UPDATE multiple tables in MySQL using LEFT JOIN - Stack Overflow

UPDATE multiple tables in MySQL using LEFT JOIN - Stack Overflow

瀏覽:1359
日期:2026-04-21
UPDATE t1 LEFT JOIN t2 ON t2.id = t1.id SET t1.col1 = newvalue WHERE t2.id IS NULL. Note that for a SELECT it would be more efficient to use NOT ......看更多