在Ubuntu中安装Sqlite3
在Ubuntu中安装Sqlite3很简单,步骤如下:
1、输入安装命令
sudo apt-get install sqlite sqlite3
2、验证安装
输入
sqlite3 test.db
出现如下结果:
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
输入
.database
出现如下结果:
seq name file
--- --------------- ----------------------------------------------------------
0 main /home/xuemin/test.db
sqlite>
--- --------------- ----------------------------------------------------------
0 main /home/xuemin/test.db
sqlite>
输入 .exit 退出 sqlite3!