双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

请教一条SQL优化

chinastorm chinastorm 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
大家好,我原来的一条语句:
select * from [T_user]
where classID='7066cb2fbb327377' and classNumID='5e08f3ac9efe64a1'
And ( phoneNum='310--' or phoneNum='-100-'
or phoneNum='--001' or phoneNum='31---'
or phoneNum='---01' or phoneNum='3----'
or phoneNum='-1---' or phoneNum='--0--'
or phoneNum='---0-' or phoneNum='----1' )
但是数据多了以后速度非常慢,请问怎么优化呀?
...全文
评论 8
收藏 已收藏
分享
返回顶部
chinastorm
MS-SQL Server 34,876 成员 254,635 内容