ho fatto come dici tu (Metodo 2) ma ho avuto questo errore:

Incorrect integer value: '' for column 'ID' at row 1