www.gusucode.com > database 案例源码程序 matlab代码 > database/CreateReadOnlySQLiteConnExample.m
%% Create a Read-Only SQLite Connection % Create a read-only SQLite connection |conn| to the MATLAB(R) interface to % SQLite using an existing database file |tutorial.db|. Specify the file % name in the current working folder. %% dbfile = fullfile(pwd,'tutorial.db'); conn = sqlite(dbfile,'readonly') %% % |conn| is a SQLite connection object with these properties: %% % * SQLite database file name. % * SQLite connection is open. % * SQLite connection is read only. %% % Close the SQLite connection. close(conn)