update tabA set PrintTag=c.dp_state from tabA a inner join tabB b on a.Code=b.design inner join tabC c on b.spdm=c.sp where a.PrintTag is null and c.state='已打印'…
下面我建两个表,并执行一系列sql语句,仔细观察sql执行后表中数据的变化,很容易就能理解多表联合更新的用法 student表 class表 1. 执行 UPDATE student s , class c SET s.class_name='test00',c.stu_name='test00' WHERE s.class_id = c.id stud…