UPDATE mytable SET this = 'this' AND that = 'that'
WHERE MATCH (items) AGAINST ('item5')
The problem is this query will perform an UPDATE on every match found, instead of the desired result which is to update the first row matched.
Adding LIMIT 0, 1 to the query results in a MySQL Syntax Error. Is there a way to do this update on the first record found using a fulltext query?
According to the documentation of
update, you can use :And not, like you did :
So, in your case, your query would look like this :