Interact with Data in SQLite Database Using MATLAB Interface to SQLite
To analyze your data using SQL in MATLAB® without access to any database or driver, use the MATLAB interface to SQLite. After installing Database Toolbox™, you can use the MATLAB interface to SQLite to move data between MATLAB and an SQLite database file. For details, see MATLAB Interface to SQLite. The SQLite connection is different from a database connection created using a JDBC driver. For background information about SQLite databases, see the SQLite Home Page.
MATLAB Interface to SQLite Advantages
With the MATLAB interface to SQLite, you can start working with data immediately after installing the Database Toolbox by creating an SQLite database file. No installation or administration of software or drivers required. You can share data using SQLite database files. Also, you can deploy a standalone database application without additional installation or configuration on target machines. The MATLAB interface to SQLite supports Windows®, Linux®, and Mac.
MATLAB Interface to SQLite Workflow
To connect to a database quickly and import data, use the MATLAB interface to SQLite. These steps provide a high-level workflow for using the MATLAB interface to SQLite.
Create an SQLite database file by using
sqlite. The SQLite database file has a
sqliteobject signifies an SQLite database connection.
Create tables in the SQLite database file by using
Export your data into the SQLite database file by using
Perform data analysis in MATLAB.
Export results into the SQLite database file by using
Close the SQLite connection by using
Share the SQLite database file with others.
Create a standalone SQLite database application and deploy it.
SQLite JDBC Connection Differences
The following table describes the differences between using the MATLAB interface to SQLite and using the JDBC driver to connect to an SQLite database.
SQLite Connection Using the MATLAB Interface to SQLite
SQLite Database Connection Using a JDBC Driver
Database connection function
MATLAB Interface to SQLite Limitations
The limitations of using the MATLAB interface to SQLite are:
NULLvalues are not supported as the first value in any column.
Database import options are not supported.
Database Explorer is not supported. Use the command line.
- Access Relational Database Data in MATLAB
- Import Data Using MATLAB Interface to SQLite
- Insert Data into SQLite Database Table
- Create Table and Add Column in SQLite Database
- Deploy MATLAB Interface to SQLite Database Application with MATLAB Compiler