Importing data is a very simliar process to exporting.
The syntax for importing a file is:
LOAD DATA INFILE 'file_name.txt' INTO TABLE tbl_name (field1, field2...etc)
LOAD DATA INFILE 'c:\\employee.txt' INTO TABLE employee (id, first_name, last_name, start_date, salary, city);
26.2.Import Export Data | ||||
26.2.1. | Turn Exporting and Importing Data on | |||
26.2.2. | Exporting Data | |||
26.2.3. | Importing data | |||
26.2.4. | Load data to your table | |||
26.2.5. | LOAD DATA INFILE into a table |