Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用过
SELECT * FROM TABLE WHERE BINARY Field REGEXP '[a-z][A-Z]+[a-z]'
为了找到wordWord类型的内容。
我想知道我是否可以在更新/替换中使用它。不确定我将如何构建它,尽管期望的结果当然是wordWord变成word Word.
wordWord
word Word
不,mysql 的REGEXP运算符只返回布尔值。
REGEXP
因此,您只能检查某些字符串是否与某些表达式匹配,仅此而已。