I have a table 'tbl_content'
When I run the following query I can see 11 records/data
SELECT ContentID, CategoryID, Home, Inner
FROM tbl_content
WHERE CategoryID = 1 AND Inner = 2
ORDER BY ContentID DESC
When I run the following query I can see first 4 records/data
SELECT ContentID, CategoryID, Home, Inner
FROM tbl_content
WHERE CategoryID = 1 AND Inner = 2
ORDER BY ContentID DESC LIMIT 7, 10
I want to update value of the remaining first 4 records/data. But unfortunately it is generating error.
UPDATE tbl_content
SET Inner = 1
WHERE CategoryID = 1 AND Inner = 2
ORDER BY ContentID DESC LIMIT 7, 10
Can anyone kindly give any solution?