フィルターのクリア

import table from .db file

21 ビュー (過去 30 日間)
Toke Søltoft
Toke Søltoft 2014 年 7 月 23 日
回答済み: Toke Søltoft 2014 年 7 月 23 日
I have some sqlite .db files which I want to import into matlab. The .db file is attached.
How can I import a selected table from the .db(I need the DPV table) or even the whole .db into matlab, into a structure or something. The .db files will never have a huge size.
I have look around for connecting to a sql database, but I can only find solution for connecting remotely to one. I have these .db files locally.
There must be a simple solution to this that I can't see.

採用された回答

Toke Søltoft
Toke Søltoft 2014 年 7 月 23 日
The easiest way (I think) is to use sqlite3:
system('sqlite3 -header -csv project.db "select * from DPV;" > results.csv');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by