首页 > 代码库 > linux sqlite安装
linux sqlite安装
wget http://www.sqlite.org/sqlite-3.6.16.tar.gz
tar -zxvf sqlite-3.6.16.tar.gz
cd sqlite-3.6.16
./configure
make;make install
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite
[root@inbelle ipsecmc]# sqliteuser.db
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
sqlite> .tables
p2pvpn_client
sqlite> select * fromp2pvpn_client;
group001|test001|123456
group001|test002|123456
group001|test003|123456
group001|test004|123456
group001|test005|123456
group002|test001|123456
group002|test002|123456
group002|test003|123456
group002|test004|123456
group002|test005|123456
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
sqlite> .tables
p2pvpn_client
sqlite> select * fromp2pvpn_client;
group001|test001|123456
group001|test002|123456
group001|test003|123456
group001|test004|123456
group001|test005|123456
group002|test001|123456
group002|test002|123456
group002|test003|123456
group002|test004|123456
group002|test005|123456
sqlite> .schema
CREATE TABLE p2pvpn_client(
groupname varchar(32) NULL,
username varchar(32) NULL,
password varchar(32) NULL);
CREATE TABLE p2pvpn_client(
groupname varchar(32) NULL,
username varchar(32) NULL,
password varchar(32) NULL);
sqlite> insert into "p2pvpn_client"values ("group001","test006","123456");
sqlite> select * fromp2pvpn_client;
group001|test001|123456
group001|test002|123456
group001|test003|123456
group001|test004|123456
group001|test005|123456
group002|test001|123456
group002|test002|123456
group002|test003|123456
group002|test004|123456
group002|test005|123456
group001|test006|123456
sqlite>
sqlite> .exit
sqlite> select * fromp2pvpn_client;
group001|test001|123456
group001|test002|123456
group001|test003|123456
group001|test004|123456
group001|test005|123456
group002|test001|123456
group002|test002|123456
group002|test003|123456
group002|test004|123456
group002|test005|123456
group001|test006|123456
sqlite>
sqlite> .exit
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。