SQL 求教两个字段的值存到对方的result中了,怎么调换 如图,sample_number=0027中有两个项目一个是5127,5128现在 在最后一列result中 怎么样把5127的值和5128的值调换SQL 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果只有这两个值,那么update aset original_result=(select top 1 original_result from tb t where a.sample_number=t.sample_number and a.original_result<>t.original_result)from tb awhere sample_number='0027' SQL2008 看看这样的查询语句怎么写??? 求一条奇怪的SQL语句 求SQL语句 请问哪里有网站数据库设计实例? 求一SQL语句 请简单说明SQL语句书可以提高执行效率的5种需要注意的书写方法 字符串构造问题 单表如何select出额外的计算列的结果?求助 急急!!sql 数据查询,获得UV值和活跃用户数 sql2012 整型无序排列有问题? ADO 调用存储过程 结果集不对
update a
set original_result=(select top 1 original_result from tb t where a.sample_number=t.sample_number and a.original_result<>t.original_result)
from tb a
where sample_number='0027'