Hi to all;
The question was asked more than once , and there were several answers. However I can not find a solution to my 'little' following question :
I would like to import data from a text file with a separator ";" whose first line gives the names of the fields in the destination table . And with the following options that are available to the user :
1 - The imported data will replace all data in the destination table . (remove all / Import all)
2 - Only new data is added
3 - Only the new ones are added , and if the data ( The key enregistremen ) Similar exist, they will be updated by the imported data
4 - update only the existing data in the table.
Import report should be generated
The concern I have
I can not do the mapping between the columns in the import file and the table and use it.
I do not know how to match data types Import / Table ( Knowing that the import is in text format ?)
Find the primary key and the load to achieve the 'find' in the destination table to apply the options ( below desssus )
So, if you have suggestions , ideas I'm interested.
Thank you to all of you cordially