This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Close SQLite connection





close(conn) closes the SQLite connection by using the MATLAB® interface to SQLite.


The SQLite connection object remains open until you close it using the close function. Always close this object when you finish using it.


collapse all

Create an SQLite connection using the MATLAB® interface to SQLite and the existing database file tutorial.db, which is in the current folder.

dbfile = fullfile(pwd,'tutorial.db');

conn = sqlite(dbfile);

To import data from the database file, use the fetch function.

Close the SQLite connection.


Input Arguments

collapse all

SQLite database connection, specified as an sqlite object created using the sqlite function.

Introduced in R2016a