I’m trying to delete the most lower 60 rows but its not working.
I tried some other posts in stackoverflow but non of them worked for me.
DELETE FROM windUpdates
WHERE INDEX <= (
( SELECT MAX( INDEX ) FROM windUpdates ) - 60
)
Thanks.
you need to create temporary table for the result of your subquery,
PS: Be sure to backup your database first.