Chinaunix首页 | 论坛 | 博客
  • 博客访问: 260150
  • 博文数量: 56
  • 博客积分: 1190
  • 博客等级: 少尉
  • 技术积分: 640
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-21 17:05
文章分类

全部博文(56)

文章存档

2014年(2)

2013年(4)

2012年(46)

2011年(4)

我的朋友

分类: LINUX

2012-03-02 14:19:00

数据导出
select * into outfile '/tmp/slg-item.txt' fields terminated by ',' optionally enclosed by '"' lines terminated by '\n' from test;

数据导入方法一:
load data infile '/tmp/test.txt' into table test fields terminated by ',' optionally enclosed by '"' lines terminated by '\n';

数据导入方法二:
mysqlimport -u -p  -S /tmp/mysql.sock --local /tmp/test.txt --fields-terminated-by ',' --fields-optionally-enclosed-by '"' --lines-terminated-by '\n'
阅读(839) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~