将数据批量加载到sqlite吗? [英] Bulk load data into sqlite?

查看:103
本文介绍了将数据批量加载到sqlite吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人对实用程序有任何提示,这些实用程序可用于将定界文本文件中存储的数据批量加载到SQLite数据库中?

Does anybody have any tips on utilities that can be used to bulk load data that is stored in delimited text files into an SQLite database?

理想情况下,可以

与我一起工作的一个小组有一个Oracle数据库,该数据库将大量数据转储到文件中,然后进行加载将该数据存储到SQLite数据库中以便在移动设备上使用,并正在寻找实现这种情况的最简单方法。

A group I work with has an Oracle Database that's going to dump a bunch of data out to file and then load that data into an SQLite database for use on a mobile device and are looking for the easiest way to implement that sort of scenario.

推荐答案

签出sqite .import命令-确实做到了。

您可以使用.separator命令设置分隔符

Check out the sqite .import command - it does exacty this.
You can set the separator with the .separator command

sqlite3 myDatabase
create table myTable (a, b, c);
.separator ','
.import  myFile  myTable

这篇关于将数据批量加载到sqlite吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆