使用python在linux中读取sqlite文件 [英] Read sqlite file in linux using python

查看:89
本文介绍了使用python在linux中读取sqlite文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在java中创建了一个sqlite数据库的.db文件,用于使用的sqlite-jdbc3.8.7.jar文件。



现在我想读这个这个文件在linux下使用python中的sqlite-jdbc3.8.7.4。



所以怎么读这个......

解决方案

让我提醒您JDBC的意思是:Java数据库连接。 Java的。所以,它与Python无关。请参阅: http://en.wikipedia.org/wiki/Java_Database_Connectivity [ ^ ]。



本地,SQLite是一个C库。通过使用模块sqlite3,这个库直接用于Python绑定。请参阅:

https://docs.python.org/2/library/sqlite3 .html [ ^ ],

http://zetcode.com/db/sqlitepythontutorial [ ^ ],

http://www.pythoncentral.io/introduction-to-sqlite-in-python [ ^ ]。



-SA

I have created one .db file of sqlite database in java, for that sqlite-jdbc3.8.7.jar file used.

Now I want to read this this file in linux using the sqlite-jdbc3.8.7.4 in python.

so how to read this...

解决方案

Let me remind you that "JDBC" means: "Java Database Connectivity". Java. So, it has nothing to do with Python. Please see: http://en.wikipedia.org/wiki/Java_Database_Connectivity[^].

Natively, SQLite is a C library. And this library is directly used for Python binding, by the use of the module "sqlite3". Please see:
https://docs.python.org/2/library/sqlite3.html[^],
http://zetcode.com/db/sqlitepythontutorial[^],
http://www.pythoncentral.io/introduction-to-sqlite-in-python[^].

—SA


这篇关于使用python在linux中读取sqlite文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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