时间:2021-07-01 10:21:17 帮助过:22人阅读
一、软件包 a) sqlite-autoconf-3070400.tar.gz二、安装步骤a) tar zxvf sqlite-autoconf-3070400.tar.gzb) cd sqlite-autoconf-
首页 → 数据库技术
背景:
阅读新闻
Linux SQLite安装
[日期:2011-01-18] 来源:51CTO 作者:witer666 [字体:]
一、软件包
a) sqlite-autoconf-3070400.tar.gz
二、安装步骤
a) tar zxvf sqlite-autoconf-3070400.tar.gz
b) cd sqlite-autoconf-3070400
c) ./configure --prefix=/usr/local/sqlite
d) Make
e) Make install
三、SQLite3相关命令
a) /usr/local/sqlite/bin/Sqlite3 user.db创建一数据库
b) 查看帮助
SQLite version 3.3.6
Enter ".help" for instructions
sqlite> .databases
seq name file
--- --------------- ----------------------------------------------------------
0 main /usr/local/sqlite/bin/userdb
sqlite> .help
.databases List names and files of attached databases
.dump ?TABLE? ... Dump the database in an SQL text format
.echo ON|OFF Turn command echo on or off
.exit Exit this program
.explain ON|OFF Turn output mode suitable for EXPLAIN on or off.
.header(s) ON|OFF Turn display of headers on or off
.help Show this message
.import FILE TABLE Import data from FILE into TABLE
.indices TABLE Show names of all indices on TABLE
.mode MODE ?TABLE? Set output mode where MODE is one of:
csv Comma-separated values
column Left-aligned columns. (See .width)
html HTML