SQL 判断字段是否为中文、字母、数字

 

ascii ( col )

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

 

如:判断中文

select * from dws_new_role where ascii(game_server) > 123

判断数字 

select * from dws_new_role where ascii(role_id) between 48 and 57