import - (SQL) How to set column names of MySQL table as the delimited first line of my infile? -
The first line of my profile is actually the name of the delimited column in the file. What is the use of those column names in the file for any mysql import, and with the names, do the columns in the mysql table, which I do not want?
I do not think you can import structure by using LOAD DATA INFILE
You can do it, but what you mean, it should not be very difficult to write a parser to read that line and create a table for a general purpose, and then to ignore the structure definition line on the import You can use IGNORE 1 LINES
in the LOAD
statement.
Comments
Post a Comment