MySQL可同时更新多个表

UPDATE test1 t, test2 tt, test3 ttt SET t.str1 = 'a', tt.str2='b', ttt.str3='c' WHERE t.id=1 and tt.id=2 and ttt.id=3; 没有什么须要多说的,应该能够一看就懂。sql
相关文章
相关标签/搜索