`
dyclh
  • 浏览: 49154 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

查询有汉字或字母的语句

 
阅读更多

select *  , case
   when status=1 then '临时会员'
    when status=2 then '注册会员'
     when status=0 then '冻结帐户'
   else ''
end

from tb_user
where
isnull(account,'')<>'' and (account  like  '%[吖-座]%' or
 account  like '%[a-z]%' 
 or account like '%-%' or account like '% %'  )   order by status

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics