SQL - Module 1
Setting up SQLite
● Step 1: Download SQLite
○ Windows: Visit the SQLite website and download the precompiled binaries for
Windows.
○ Mac: SQLite is usually pre-installed, but you can also use Homebrew to install
it.
○ Linux: SQLite is commonly pre-installed, but can be installed via package
managers like apt-get or yum.
● Step 2: Install SQLite on your system
○ Windows: Extract the ZIP file and add the directory to your PATH.
○ Mac/Linux: Use terminal commands for installation.
■ Open the Terminal:
● You can open the Terminal by going to Applications >
Utilities > Terminal.
● Alternatively, you can search for "Terminal" using Spotlight
(press Cmd + Space and type "Terminal").
■ Type the following command and press Enter:
Sqlite3
■ This will open the SQLite command-line interface (CLI), and you
should see something like this:
SQLite version 3.X.X 2020-XX-XX XX:XX:XX Enter
".help" for usage hints. sqlite>
This prompt (sqlite>) means that you are now in the SQLite environment and can start
running SQL commands.