Close SQLite connection
close(conn)
example
close(conn) closes the SQLite connection by using the MATLAB® interface to SQLite.
conn
Note
The SQLite connection object remains open until you close it using the close function. Always close this object when you finish using it.
close
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.
tutorial.db
dbfile = fullfile(pwd,'tutorial.db'); conn = sqlite(dbfile);
To import data from the database file, use the fetch function.
fetch
Close the SQLite connection.
sqlite
SQLite database connection, specified as an sqlite object created using the sqlite function.
fetch | sqlite
You have a modified version of this example. Do you want to open this example with your edits?