首页 > 技术文章 > SQLite入门使用

nuccch 2016-12-08 18:57 原文

SQLite官网: https://www.sqlite.org/index.html

 

1. 下载
请到https://www.sqlite.org/download.html下载相应平台的sqlite包:
windows: sqlite-tools-win32-x86-xxxxx.zip
linux: sqlite-tools-linux-x86-xxxxx.zip


2. 安装
将下载的SQLite安装包解压到自定目录,如: D:\ProgramFiles\sqlite-tools-win32-x86-3150200。
将该路径添加到系统的PATH环境变量中。


3. 启动访问控制台(windows下直接进入windows控制台)

# 创建数据库,可以指定数据库具体路径
C:\Users\xxx>sqlite3 D:/test.db
SQLite version 3.15.2 2016-11-28 19:13:37
Enter ".help" for usage hints.
sqlite># 创建表,查询等操作可以通过在sqlite命令行执行,但是推荐通过GUI工具完成(DB Browser for SQLite).

 

4. SQLite GUI管理工具
http://sqlitebrowser.org/ #DB Browser for SQLite


5. SQLite Java驱动
https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc


6. SQLite Java 文档
https://www.tutorialspoint.com/sqlite/sqlite_java.htm # SQLite Java Tutorial
http://blog.csdn.net/hao114500043/article/details/52909036 # Mybatis-SQLite整合

 

推荐阅读