mysql必知必會 ——正則表達式

目的:在mysql where子句中使用正則表達式來更好的控制數據的過濾。 一.基本字符匹配: 1.檢索name包含文本san的所有行:         select * from test where name regexp 'san'; 2.知道'.'是正則表達式語言中的一個特殊的字符,他表示匹配任意一個字符, 如:select * from test where name regexp '.
相關文章
相關標籤/搜索