首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

update的有关问题

2012-01-19 
update的问题updateaseta.ggxhb.ggxhwherea.wpbhb.wpbh该怎么写呢?[解决办法]update a set a.ggxhb.ggx

update的问题
update   a   set   a.ggxh=b.ggxh   where   a.wpbh=b.wpbh
该怎么写呢?

[解决办法]
update a set a.ggxh=b.ggxh from a,b where a.wpbh=b.wpbh
[解决办法]
update a set a.ggxh=b.ggxh From a,b where a.wpbh=b.wpbh

Or

update a set a.ggxh=b.ggxh From a inner join b on a.wpbh=b.wpbh
[解决办法]
update a set a.ggxh=b.ggxh
From a
inner join b on a.wpbh=b.wpbh

[解决办法]
update a set a.ggxh=b.ggxh from a,b where a.wpbh=b.wpbh

热点排行