字段是否包含中文、英文、数字

一、包含中文字符

select * from table  where col  regexp '[\\u4E00-\\u9FFF]+'

### select * from table  where col  like '%[吖-座]%'

二、包含英文字符

select * from table  where col  like '%[a-zA-Z]%' 

三、包含纯数字

select * from table  where col  like '%[0-9]%'

 

你可能感兴趣的:(MySQL,HIVE)