SELECT * FROM table1 WHERE col1 REGEXP '^[A-Za-z0-9]+';
SELECT '2013-05/26' REGEXP '^[0-9]{4}[-/][0-9]{2}[-/][0-9]{2}$';
SELECT '25227' REGEXP '^[[:digit:]]+$'; -- 表示只包含数字
用法跟LIKE可能有些类似
|
1185767500
why we only heard about haves(富) and have-nots(贫), but we did'nt heard about doers(勤快) and doer-nots(懒惰).
|
|
|
|