

Use the following command to create the table: The shark’s average length (in centimeters).Now let’s create a table and some columns for various data: SQLite commands are uppercase and user information is lowercase. The rest of this tutorial will follow a common convention for entering SQLite commands. To better visualize a table, one can imagine rows and columns. SQLite databases are organized into tables. With your Shark database created, you will now create a new table and populate it with data. That way you will make sure that the database file was actually created.

To make sure that the file gets created, you could run an empty query by typing and then pressing “Enter”. If the file sharks.db does not already exist and if you exit the sqlite promote without running any queries the file sharks.db will not be created. To verify the installation, check the software’s version:įollowing this, your prompt will change. To install the SQLite command-line interface on Ubuntu, first update your package list: Step 1 - Installing SQLite on Ubuntu 20.04 To set up a server, including a non-root sudo user and a firewall, you can create a DigitalOcean Droplet running Ubuntu 20.04 and then follow our Initial Server Setup Guide.

