标签: mysql wildcard rlike
Mysql RLIKE中的.和*通配符有什么用途?
.
*
在这样的查询中:SELECT DISTINCT city FROM station WHERE city RLIKE '^[aeiouAEIOU].*[aeiouAEIOU]$'
SELECT DISTINCT city FROM station WHERE city RLIKE '^[aeiouAEIOU].*[aeiouAEIOU]$'
此表达式给出以元音开头和结尾的城市名称的结果。^和$将匹配项锚定到值的开头和结尾。
^
$
现在上面的表达式表达式中.和*通配符有什么用途?