Connect to Database Programmatically
Database Toolbox™ enables you to connect to various relational databases by installing the database and driver. If you do not want to install a database and driver, you can use the MATLAB®interface to SQLite.
After establishing a database connection, you can explore database contents and structure using the command line. Close the database connection when you are finished.
Objects
connection |
Relational database ODBC connection |
connection |
Relational database JDBC connection |
Functions
Topics
Connect to Database
After configuring a driver and data source, connect to your database.
Working with MATLAB Interface to SQLite
Analyze data without access to a database or driver by using the MATLAB interface to SQLite.
Retrieve Information About Database Structure
Find information about the database, tables, and columns using theconnection
object and thesqlfind
function.
Identify restrictions on table and column names for data retrieval.