I\'m trying to do something like
SELECT * FROM table WHERE column REGEXP (abc)(?=def)
and I got the error
Got error \'rep
MySQL REGEXP does not support lookaheads, but you can try to achieve the same logic using something like this:
REGEXP
WHERE column LIKE 'abc%' AND SUBSTRING(column, INSTR(column, 'abc') + 3, 3) <> 'def'