No, a new database will be opened and you will be given an sqlite3* to it.
Just like the fopen() call can be used to open multiple files, sqlite3_open* opens a database. The way to close an sqlite3* (handle to a) database is to use sqlite3_close specifying the database you want to close. -- ˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı > -----Original Message----- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] > On Behalf Of Igor Korot > Sent: Friday, 14 April, 2017 08:26 > To: Discussion of SQLite Database; General Discussion of SQLite Database > Subject: [sqlite] Create database > > Hi, > If I have a database open with sqlite3_open() and then want to issue > another sqlite3_open(), > the old database will be closed and the new one will open? > Or I have to explicitly call sqlite3_close()? > > Thank you. > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users