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]# sqlite user.db 
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> 
sqlite> .tables
p2pvpn_client
sqlite> select * from p2pvpn_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);
sqlite> insert into "p2pvpn_client" values ("group001","test006","123456");
sqlite> select * from p2pvpn_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

linux sqlite安装,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。