Category: Databases
-
SQLite Detach Database
The SQLite DETACH DATABASE statement is used to detach the alias-named database from a database connection which was previously attached by using ATTACH statement. If the same database file has been attached with multiple aliases, then DETACH command will disconnect only given name and rest of the attachment will still continue. Main and temp databases…
-
SQLite Attach Database
What is Attach database? Assume a condition where you have multiple databases available and you have to use only one of them at a time. That’s why ATTACH DATABASE statement is used. It facilitates you to select a particular database and after using this command, all SQLite statements will be executed under the attached database.…
-
SQLite Create Database
In SQLite, the sqlite3 command is used to create a new database. Syntax: Your database name should be unique within the RDBMS. Note: The sqlite3 command: The sqlite3 command is used to create database. But, if the database does not exist then a new database file with the given name will be created automatically. How…