Question
May 10, 2007 at 11:17 AM
mo_bond

SQL Database Select

by mo_bond . Updated 19 years, 5 months ago

Hi I’m new to mySQL. I have managed to use LOAD DATA INFILE to populate a table (say table ‘names’) with the contents of a text file (tab delimited). The file has contains three cols (e.g. id, f_name, s_name) and one record (01, John, Smith).

The Load works when I have one record in the ‘.txt’ file, when I try a multiple record file and then perform a Select * the returned table is not aligned correctly, e.g. the contents of field ‘f_name’ appear in ‘s_name’.
Can you load a multi record file using the LOAD DATA INFILE statement? If so, how?

Thanks,
Mo

This discussion is locked

All Comments