请教查讯并且替换的sql语句,具体情况见内 update tablename set n2=n2+'a1' where n3>2 and n1 not like '%a1%' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update 表 set n2=n2+'sn' where n3>2 and left(n1,2)<>'a1' update 表 set n2='sn'+n2 where n3>2 and left(n1,2)<>'a1' update table set n2 = "sn" + n2where n3 > 2 and charindex("al", n1) = 0 update table1 set n2 = 'sn'+n2 where n3 > 2 and charindex('a1',n1) = 0 查找 n3 大于 2 的,并且 n1字段中的内容不包含 "a1"字符串,找到这样的记录后,在n2得字符串前面插入 "sn" 字符 update table1 set n2 = 'sn'+n2 where n3 > 2 and charindex('a1',n1) = 0 我是这样做的select stuff(n2,1,0,'sn') from temp where n3>2 and not n1 like 'a1%'请行家评判一下,哪个效率更好 怎样查找到已知记录的表名? Sql中变量的使用 如何同时在两个表中查找数据? SQl的小问题 触发器IF update后的语句操作对象是更新前还是更新后??? 怎样创建一个返回结果集的存储过程? Sql自身连接查询的子查询问题 日志文件删除后有什么影响? 一个邮件服务问题 关于企业管理器的问题!! 可否用ASP将服务器SQL表为导出EXCEL表并保存在客户端???? 新手请教如何学习SQL,谢谢大家来这里帮忙讨论!
where n3 > 2 and charindex("al", n1) = 0
where n3 > 2 and charindex('a1',n1) = 0
where n3 > 2 and charindex('a1',n1) = 0
select stuff(n2,1,0,'sn') from temp where n3>2 and not n1 like 'a1%'
请行家评判一下,哪个效率更好