sql查询某一字段是否为纯数字构成
select * from table where (字段 REGEXP '[^0-9.]')=0;
查询一些特殊字符
select * from table where 字段 not like '%+%' and 字段 not like '%/%' and length(字段) <= 50 and 字段 not like '%='
查询字段是否有中文
select * from table where length(字段)!=char_length(字段)
查询某个表中字段的最大长度
SELECT LENGTH('Hello World');
select max(字段) from 表;
查询小于50长度的某个字段
select * from 表 where length(字段) <= 50