SQLite3輸出格式

退出當前程序
sqlite>.exit
sqlite>.quit

查看已存在的表名
sqlite>.tables

查看所有數據:
sqlite>select * from history;
這裏寫圖片描述

顯示列名,以列的形式顯示錶內容:
sqlite>.header on
sqlite>.mode column
sqlite>select * from history;
這裏寫圖片描述

更多詳情可參考
http://www.iteedu.com/database/sqlite/sqlitestart/outformate.php

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章