sql - MySQL: Loading multiple files into a table -
i've been trying load multiple files table, fit same row.
i can insert them separately, issue lies within null
values, , plan join table. if happens, many null
values -- useless data.
load data local infile 'malefirst.txt, femalefirst.txt, allfirst.txt, allfirst.txt' table fnames (mal, fml, unk, cpx);
another thing have looked joining files
paste -d " " (1.txt 2.txt ....)
however, turned mess. if first method not work, can use second, need advice on well.
you load 4 files 4 (temporary) tables (each autonumbered field) , join (using ids) these files table.
Comments
Post a Comment