码迷,mamicode.com
首页 > 数据库 > 详细

sqlite如何dump指定查询数据

时间:2015-04-08 22:44:24      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:

You don‘t say what you wish to do with the dumped file.

I would use the following to get a CSV file, which I can import into almost everything

.mode csv 
.header on 
.out file.dmp 
select * from emp;

If you want to reinsert into a different SQLite database then:

.mode insert <target_table_name>
.out file.sql 
select * from emp

sqlite如何dump指定查询数据

标签:

原文地址:http://www.cnblogs.com/jayzee/p/4403707.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!