[英]Selecting a sentence in mysql starting with a word, and NOT followed by another word
我试图在mysql中选择一个句子,开头是单词“ by”,而不是单词“ the”,但它不起作用。 我究竟做错了什么?
SELECT *
FROM `allData`
WHERE response REGEXP '^by ?!the'
mysql regex不支持正向或负向前瞻。 或者你可以做类似的事情
response REGEXP '^by ' and response not like 'by the%'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.