Export SQLite database to .mat(.m) file
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Altaf Shaikh
am 2 Mai 2017
Kommentiert: Abraham Sherura
am 11 Aug. 2018
Hi Guys,
I am new at this forum and I want some help regarding a convert SQLite database into .m(matlab) file for support matlab editor as well that getting easy to understand. Would you please tell me how I convert my database(SQLite) file into .m file ? Is it direct support or shall I create first excel or in other format ?
Thanks in advance!
3 Kommentare
Jan
am 3 Mai 2017
The question is not clear. How exactly can the input file be access and what do you want as output file?
Akzeptierte Antwort
Guillaume
am 3 Mai 2017
Bearbeitet: Guillaume
am 3 Mai 2017
If you have the database toolbox, importing all rows of a table from an sqlite file is trivial:
conn = sqlite('yourdbfile.db');
tabledata = fetch(conn, 'SELECT * FROM sometable');
You can do that for all the tables, if that's what you mean by converting the database to a mat file. You will, of course, be missing a lot of what constitutes a database, the schema, triggers, views, indexes, etc. which I'm not sure how you'd store in a mat file.
2 Kommentare
Abraham Sherura
am 11 Aug. 2018
Hey Altaf, do you mind taking me through how you figured it out. I am in the same mix. Trying to export an SQLite database to MATLAB. Thank you
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Database Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!