- 論壇徽章:
- 0
|
linux下mysql如何導(dǎo)入換行的數(shù)據(jù)?
test1;9185hm8hq089c;2413334117;11;| | 1 | 8 | 1 |;SQLSNAP;2009-0
4-28 09:36:20
test1;9185hm8hq089c;2413334117;10;| | | | | |;SQLSNAP;2009-0
4-28 09:36:20
test1;9185hm8hq089c;2413334117;9;| | | 3 | 24 | 5 |;SQLSNAP;2009-04
-28 09:36:20
如果不要那個(gè)timestamp字段,就可以方便導(dǎo)入,但如果換行了,就會(huì)導(dǎo)入很多無(wú)效的行,
就象4-28 09:36:20數(shù)據(jù),另起一行。
load data infile '$OUTFILE' into table sqlplan fields terminated by ";" enclosed by by ''
(service, sql_id, plan_hash_value, plan_id, plan_line, plan_type, timestamp);
如何在數(shù)據(jù)換行的情況下?導(dǎo)入完整的一條記錄? |
|