My current query is
SELECT p.* FROM proxies p where p.last_used=1
here in db, according the query select id=4 but i want to select next record
wheer id=5
(For details please click on image)
need help
My current query is
SELECT p.* FROM proxies p where p.last_used=1
here in db, according the query select id=4 but i want to select next record
wheer id=5
(For details please click on image)
need help
You can use a query like this:
SELECT p.id FROM proxies p where p.id >
(SELECT p.id FROM proxies p where p.last_used=1 LIMIT 1)
ORDER BY p.id
LIMIT 1;