I have a text file include the content like the following,and also have SQL table have the same structure, does anyone know how to loop insert the content to SQL from txt file?and everyday we need to import once,we don’t want to import the same record to the table,Pers.no will have the unique value.Many thanks.
Pers.no. | Personnel number | Name | Cost ctr. | Position/work center key | Gender key | Entry date | IC Number |
---|---|---|---|---|---|---|---|
00000001 | AAA | 123 | 1234-5678 | Title,Department | Female | 9999/12/31 | 1234567890123456789 |
00000002 | BBB | 456 | 1234-5678 | Title,Department | Female | 9999/12/31 | 1234567890123456789 |
00000003 | CCC | 789 | 1234-5678 | Title,Department | Female | 9999/12/31 | 1234567890123456789 |
00000004 | DDD | 223 | 1234-5678 | Title,Department | Female | 9999/12/31 | 1234567890123456789 |