我想将我的 java 程序连接到 SQLite 数据库。我必须遵循哪些必要步骤。我想在我的系统上安装 sqlite 数据库来访问数据库。
最佳答案
来自SQLite Homepage :
SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. [...]
SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file.
所以你实际上并没有安装 SQLite。要创建和使用 SQLite 数据库,您可以使用提供的 sqlite-shell
,这是一个命令行工具。如果您熟悉 SQL,这应该不是问题。
尽管如此,也有一些 GUI 工具可以与 SQLite 一起使用...
如果您希望 Java 应用程序访问并使用 SQLite 数据库,则需要必要的驱动程序。可以找到关于此的一个很好的主题here .
关于java - 如何在WIndows XP系统上安装SQLite数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7709405/