mysql 怎么使用正则表达式

日期:2016-05-11 10:29:49 人气:1

mysql 怎么使用正则表达式

属性名 regexp ‘匹配方式' 正则表达式的模式字符 ^ 匹配字符开始的部分 eg1: 从info表name字段中查询以L开头的记录 select * from info where name regexp '^L'; eg2: 从info表name字段中查询以aaa开头的记录 select * from info where name regexp '^aaa'; $ 匹配字符结束的部分 eg1:
    A+
热门评论