我在使用正则表达式从MySQL表中选择一些结果时遇到了麻烦.
我正在使用此查询
SELECT text
FROM `articles`
WHERE content REGEXP '.*<img.*?src=\"http://www'
ORDER BY date DESC
Run Code Online (Sandbox Code Playgroud)
它说
#1139 - Got error 'repetition-operator operand invalid' from regexp
Run Code Online (Sandbox Code Playgroud)
我使用Notepad ++测试了正则表达式并且它有效,为什么MySQL给我这个错误,我该如何解决它?