SELECT * FROM USER WHERE (id REGEXP '[^0-9]') = 0 REGEXP : id 中含有字符传 输出结果为1 mysql中常量true输出为1 false输出为0