问题一你可以参考下面:
http://www.mysql.com/doc/en/Cast_Functions.html
mysql> select '12345'+0;
+-----------+
| '12345'+0 |
+-----------+
|     12345 |
+-----------+
1 row in set (0.03 sec)问题二你可以参考下面:
http://www.mysql.com/doc/en/Pattern_matching.htmlselect * from user where password REGEXP "[a-z]{2}";