1.

sql语句判断是否为数字、字母、中文

select ascii(字段)

数字:48-57
字母:65-123
汉字:123+

如,要删除某个全为数字的字段

DELETE FROM table  WHERE ascii(name) between 48 and 57  

 

2.

一、包含中文字符

select * from 表名 where 列名 like '%[吖-座]%'

二、包含英文字符

select * from 表名 where 列名 like '%[a-z]%' 

三、包含纯数字

select * from 表名 where 列名 like '%[0-9]%'

 

 

 

参:心的平静的博客   http://blog.sina.com.cn/s/blog_70266c560101ioj1.html

    SQL判断某列中是否包含中文字符、英文字符、纯数字

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-12-01
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
相关资源
相似解决方案