1、下载安装包
官网http://www.sqlite.org/download.html
2、安装
3、使用
官网http://www.sqlite.org/download.html
wget http://www.sqlite.org/2017/sqlite-autoconf-3160200.tar.gz
2、安装
tar -zxvf sqlite-autoconf-3160200.tar.gz
cd sqlite-autoconf-3160200
./configure
make
sudo make install
3、使用
root@cop:/go/src/github.com/hyperledger/fabric-cop# sqlite3 cop.db
SQLite version 3.16.2 2017-01-06 16:32:41
Enter ".help" for usage hints.
sqlite> .tables
certificates groups users
sqlite> se ^H^H^H^H^H
...> ;
Error: near "se": syntax error
sqlite> select * from users;
admin|adminpw|client|bank_a|[{"name":"hf.Registrar.Roles","value":"client,peer,validator,auditor"},{"name":"hf.Registrar.DelegateRoles","value":"client"}]|0|0||
sqlite>