mysql必知必会 ——正则表达式

目的:在mysql where子句中使用正则表达式来更好的控制数据的过滤。 一.基本字符匹配: 1.检索name包含文本san的所有行:         select * from test where name regexp 'san'; 2.知道'.'是正则表达式语言中的一个特殊的字符,他表示匹配任意一个字符, 如:select * from test where name regexp '.
相关文章
相关标签/搜索