顯示表結構:
sqlite> .schema [table]
獲取所有表和檢視:
獲取指定表的索引列表:sqlite > .tables
sqlite > .database
sqlite > .indices [table ]
匯出資料庫到 sql 檔案:
從 sql 檔案匯入資料庫:sqlite > .output [filename ]
sqlite > .dump
sqlite > .output stdout
sqlite > .read [filename ]
格式化輸出資料到 csv 格式:
從 csv 檔案匯入資料到表中:sqlite >.output [filename.csv ]
sqlite >.separator ,
sqlite > select * from test;
sqlite >.output stdout
sqlite 基礎入門,趕緊收藏哦 ~sqlite >create table newtable ( id integer primary key, value text );
sqlite >.import [filename.csv ] newtable
相關參考鏈結
sqlite入門基礎
int sqlite3 get table sqlite3 db,an open database const char zsql,sql to be evaluated char pazresult,results of the query int pnrow,number of result r...
SQLite入門一 SQLite概述
學習 掌握一門新的技術通常需要了解這門技術產生的背景,為什麼需要這樣的技術,或者說能夠解決那些問題?sqlite概述 sqlite特性 與其他資料庫比較 使用sqlite解決那些問題 sqlite概述 sqlite資料庫引擎具有獨立 無伺服器端 零配置 支援事務等特點,作為一款優秀的開源嵌入式資料庫...
SQLite使用入門
什麼是sqlite sqlite是一款非常輕量級的關係資料庫系統,支援多數sql92標準。sqlite在使用前不需要安裝設定,不需要程序來啟動 停止或配置,而其他大多數sql資料庫引擎是作為乙個單獨的伺服器程序,被程式使用某種內部程序通訊 典型的是tcp ip 完成傳送請求到伺服器和接收查詢結果的工...