mysql load data local infile syntax issues with set fields
问题 I'm trying to use mysql's LOAD DATA LOCAL INFILE syntax to load a .csv file into an existing table. Here is one record from my .csv file (with headers): PROD, PLANT,PORD, REVN,A_CPN, A_CREV,BRDI, DTE, LTME 100100128144,12T1,2070000,04,3DB18194ACAA,05_01,ALA13320004,20130807,171442 The issue is that I want 3 extra things done during import: A RECORDID INT NOT NULL AUTO_INTEGER PRIMARY_KEY field should be incremented as each row gets inserted (this table column and structure already exists