请教,这个sql语句怎么写? select * from table1 where left(id,3)="011" and val(substr(3,length(id))=0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select str1 from table1 where left(str1,3) = '011' and right(str1, len(str1) - 3) = replicate('0',len(str1) - 3) select * from 表 where 列 like '011%' and cast(substring(列,4,100) as int)=0 ricetons,pengdali可能理解错了,00....只是一个例子,如果是111....,aaaa...呢?欢迎继续讨论,谢谢~ select * from 表 where 列 = '011'+REPLICATE ('0',len(列)-3) 哦!那就这样呀!select * from 表 where 列 like '011%' and replace(substring(列,4,len(列)),substring(列,4,1),'')='' http://expert.csdn.net/Expert/TopicView1.asp?id=1413951http://expert.csdn.net/Expert/TopicView1.asp?id=1413967http://expert.csdn.net/Expert/TopicView1.asp?id=1413969这三个帖子是同样的问题,希望tj_dns,abcddcba,pengdali去领分 关于C#+ASP采用三层结果调用存储过程的问题,在线等——————————————急—————————————————————— SQL的一点疑问 帮我检查一下SQL语句的错误吧,谢谢 高分跪求“测试已注册的服务器失败”解决方法 如何在存儲過程中執行存儲過程 导入excel文件的问题!急! 如何判断update语句更改数据是否成功 请问这样SQL的语句怎么写 菜鸟的触发器问题 存储过程传参数问题 请教统计问题 奇怪的问题。我在线等结果
left(str1,3) = '011'
and right(str1, len(str1) - 3) = replicate('0',len(str1) - 3)
select * from 表 where 列 like '011%' and replace(substring(列,4,len(列)),substring(列,4,1),'')=''
http://expert.csdn.net/Expert/TopicView1.asp?id=1413967
http://expert.csdn.net/Expert/TopicView1.asp?id=1413969这三个帖子是同样的问题,希望tj_dns,abcddcba,pengdali去领分