sqliteHow do I install SQLite on Ubuntu?
- Install SQLite3 on Ubuntu using the following command:
sudo apt-get install sqlite3
- After installation, check the version of SQLite installed using the following command:
sqlite3 --version
Output example
3.22.0 2018-01-22 18:45:57 8f7f2d8b0e7c9b8c1f8b2b0fa9a9f2b9
- To create a new database, use the following command:
sqlite3 mydb.sqlite
- This will create a new database file called
mydb.sqlite
. You can open this file using thesqlite3
command. - You can also use the
.tables
command to list all the tables in the database. - To exit the SQLite prompt, use the
.exit
command. - For more information, please refer to the official SQLite documentation: https://www.sqlite.org/docs.html.
More of Sqlite
- How do I create a SQLite connection string?
- How do I use regular expressions to query a SQLite database?
- How to configure SQLite with XAMPP on Windows?
- How do I install and use SQLite on Ubuntu?
- How do I use the SQLite sequence feature?
- How can SQLite and ZFS be used together for software development?
- How do I use SQLite to zip a file?
- How do I generate XML output from a SQLite database?
- How do I set up an ODBC driver to connect to an SQLite database?
- How do I use variables in a SQLite database?
See more codes...