如何针对以下场景使用正则表达式编写查询。
id name
1 Müllere
2 Kees
3 Hernández
4 Björn
上面给出的是我的 MySQL 表。我想得到结果,名称包含重音字母且名称长度大于 5
最佳答案
尝试这个查询:
Select * from test where Length(name) > '5' and name REGEXP '[accentedcharacters]+';
关于PHP正则表达式在mysql中检查名称包含重音字母并且名称长度大于5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14544942/