2011-03-31 50 views

回答

2

这应该做的伎俩对你来说,在表2假设id_x是在表1的id_x外键参考 -

update table1 set field=2 
where id_x in 
(
    select id_x from table2 where type_id = 4 
) 
+0

萨钦Shanbhag,非常感谢。 – kn3l 2011-03-31 09:23:16

相关问题