1
I have a spreadsheet with 32000 records, and I need to play for a table in the database. The problem is that in this spreadsheet I don’t have the ID of the records and I can’t let it duplicate when I import.
I need to make sure that when I import it, it checks through the "store" field (which is the store’s name/social reason), if it already exists, it must update the record with the spreadsheet data, and if it does not exist, it will create a new record in the table.
You know SQL right?
– Leandro Curioso
Particularly, I would insert ALL records into a support table. After all this import completed to the database, I would only insert the single records into the final table, ignoring duplicate records. It assures me I don’t have to redo anything wrong.
– Ismael
I believe that the focus would be on performance, since there are several ways to do it. I would do the general insertion in the target table, and then select distinct or group by, and the records that add up to more than 1, delete.
– rbz
This spreadsheet is excel?
– Sam