18),('root','root',18),('cat','cat',17),('dog','dog',15),('dog1','dog1',15),('zhu','zhu',21);
-- 表数据导出...INTO OUTFILE 'F:/user1.txt'
Fields TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"';
-- 表数据导入...(注意,导入的数据的列数要对应表的各列)
-- 先删除数据
use youku;
delete from user where age>10;
select * from user;
LOAD...TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"';
select * from user;
=================
三 txt文件查看
-- 表数据导出...admin",18
"root","root",18
"cat","cat",17
"dog","dog",15
"dog1","dog1",15
"zhu","zhu",21
----
结语:数据的具体导入导出格式大家可以自己尝试一下