www.gusucode.com > database 案例源码程序 matlab代码 > database/CreateSQLiteConnNewDBFileExample.m
%% Create SQLite Connection Using a New Database File % Create a SQLite connection |conn| to the MATLAB(R) interface to SQLite % using a new database file |tutorial.db|. Specify the file name in the % current working folder. %% dbfile = fullfile(pwd,'tutorial.db'); conn = sqlite(dbfile,'create') %% % |conn| is a SQLite connection object with these properties: %% % * SQLite database file name. % * SQLite connection is open. % * SQLite connection is writable. %% % Close the SQLite connection. close(conn)