Sqlite—查询语句(Select)

基本语法如下

sqlite> select * from tb_user;
sqlite> select userid,username from tb_user;

格式化的查询输出

sqlite> .header on
sqlite> .mode column
sqlite> select * from tb_user;

设置输出列的宽度

sqlite> .width 10, 20, 10
sqlite> select * from tb_user;

猜你喜欢

转载自www.cnblogs.com/liuhaidon/p/11962313.html