Chinaunix首页 | 论坛 | 博客
  • 博客访问: 323821
  • 博文数量: 65
  • 博客积分: 1770
  • 博客等级: 上尉
  • 技术积分: 1125
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-13 14:31
文章分类

全部博文(65)

文章存档

2016年(1)

2014年(2)

2013年(5)

2012年(18)

2011年(39)

分类: Mysql/postgreSQL

2012-10-10 17:05:09

1.将sql语句导入到数据库中 source f:/a.sql
2.将数据库文件导出成txt(csv格式) 
select * into outfile 'f:/outfile.txt' 
fields terminated by ',' enclosed by '^' escaped by '^' 
lines terminated by '\r\n' 
from TableName
3.将txt导入数据库
load data infile 'f:/outfile.txt' into table TableName 
fields terminated by ',' enclosed by '^' escaped by '^' 
lines terminated by '\r\n' 

参考地址:
阅读(946) | 评论(0) | 转发(0) |
0

上一篇:svn个人小结

下一篇:web前端小点(备忘)

给主人留下些什么吧!~~