I want to delete all records in a MySQL table where the values in ‘id’ column is more than some value and less than some value..
I tried this :
DELETE FROM `jos_users` WHERE `id` > 1303856 AND 'id' < 2557250 ;
But what happen is that all the records > 1303856 got deleted ..including the ids having value 2557250 and more than 2557250…
So what could be the correct mysql query or syntax in this situation?
Thanks in advance..
could try between