UPDATE问题 update a set a.x=b.mc from a,b where b.mc like where b.mc like '%' +a.mc+'%'前提必须保证找到的b.mc只有一个。否则要报错。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a set... from a,b where b.mc=a.mc update a set ....where b.mc like '%' +(select top 1 mc from a)+'%'或update a set ....where b.mc like '%' +(select max(mc )from a)+'%' 有两个表A,B,想用B表中符合A表条件的数据更新A表数据,update a set a.mc=b.mc ,....from b where charindex(a.mc,b.mc)>0 有两个表A,B,想用B表中符合A表条件的数据更新A表数据,update a set a.mc=b.mc ,....from b where charindex(a.mc,b.mc)>0 关于外键的疑问~ 求删除字符串左右两边空,空格,其它不可见乱码的语句 怎么我装完MS SQL后目录下只有一个文件? 能否用alter 去掉identity 请教一个查询语句 有没有类似ACCESS的Format函数相似的功能? 请问怎样用一条sql实现 *= 这里的朋友竟然说不认识! SQL Server 2000 的问题,急急急!!!! 求解决方案--如何将DTS包的执行状态信息调用到客户端(asp页面)中。 sqlserver格式化时间 如何在SQL Server中创建临时表呀。
update a set... from a,b where b.mc=a.mc
where b.mc like '%' +(select top 1 mc from a)+'%'或
update a set ....
where b.mc like '%' +(select max(mc )from a)+'%'
update a set a.mc=b.mc ,....
from b where charindex(a.mc,b.mc)>0
update a set a.mc=b.mc ,....
from b where charindex(a.mc,b.mc)>0