如何把a表中的aa列更新到b表中的列? rta表结构 a.id 和a.aab表结构 b.id 和 b。bb要把bb更行到aa列中,限制条件为a.id = b.id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a set aa=bb from b where a.id=b.id update a set aa=b.bb from a,b where a.id=b.id update aset aa=bb from ta a,tb b where a.id=b.id 同上update aset aa=bb from ta a,tb b where a.id=b.id update a set a.aa = b.bb from b where a.id = b.id 一楼的改一下也可以“:update a set aa=b.bb from b where a.id=b.id如果你的A表没有BB列,也是没问题的。 update a set a.aa=b.bb from a,b where a.id=b.idupdate a set a.aa=(select bb from b where a.id=b.id) 执行五六分钟了,没反应,a表大概有2w条记录,b表中只有4-5000条记录 怎么查找出这种0000001的最大号。 急问 数据库莫名其妙的挂起了 求救SQL语句 sql 2008 contains用法 以下功能的sql怎么写啊, 想了一天了, 请各位帮忙! 求一句SQL 一个有关ODBC与SQL 2000连接问题 问一个关于事务的问题:绑定连接? 如何利用存储查询跨月数据(前提是每个月的数据都在一个月表里,如6月数据在sale200806,7月数据在sale200807,当前数据在sale) 为什么我的机器往数据库写入日期就出错?好困惑啊。 Export和Copy有什么区别? sql简单问题???
set aa=bb
from ta a,tb b
where a.id=b.id
update a
set aa=bb
from ta a,tb b
where a.id=b.id
如果你的A表没有BB列,也是没问题的。
update a set a.aa=b.bb from a,b where a.id=b.id
update a set a.aa=(select bb from b where a.id=b.id)