用表A的数据更新表B的数据

917阅读 0评论2008-05-10 xinyu391
分类:

用表A的数据更新表B的数据
update A  ta
set ta.col1 =
(
select col1 from B tb
where ta.id = tb.id
)
where
ta.id in (select tc.id from C tc)

上一篇:夜深时
下一篇:struts2中的不支持target属性