Buon giorno, avrei la necessità di eliminare i primi 1000 record da una tabella.
In rete ho trovato questo:
codice:
DELETE TOP(1000) FROM <table> WHERE [DateTime] < @TwoYearsAgo
io ho utilizzato solo questa porzione
codice:
DELETE TOP(1000) FROM <table>
Ma non funziona e mi restituisce questo errore:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(1000) FROM tb_rubrica' at line 1

Per favore aiuto.