- 论坛徽章:
- 0
|
linux下mysql如何导入换行的数据?
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
如果不要那个timestamp字段,就可以方便导入,但如果换行了,就会导入很多无效的行,
就象4-28 09:36:20数据,另起一行。
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);
如何在数据换行的情况下?导入完整的一条记录? |
|