SQL与Access使用查询结果集更新表

SQL语法
update 表1 set 字段1 = bb.字段1 from 表1 as aa,
(select 字段1,字段2 from 表2) bb where aa.字段2 = bb.字段2
 
update t1 set t1.字段1= t2.字段1

from [表1]  t1
inner join [表2] t2 on t1.字段= t2.字段
where t2.字段 = ''

 
 
Access语法
update 表1 as a ,2 as b set a.字段1= b.字段1 where a.StuNo=b.StuNo

 

posted @ 2014-10-21 13:15  dcrenl  阅读(689)  评论(0编辑  收藏  举报