I had to learn how to use SQLite as part of install PHP iAddressbook. Here's my cheatsheet on how to do the basics.

Overview

SQLite is a very simple database which supports most of the SQL92 standard. It does not require a daemon process to run (similar to Berkeley DB) so can be a great alternative for lightweight database applications.

It does not have any support for users and instead relies on file system based permissions for controlling access to the database.

Administer the Database

There are two modes for administrating a SQLite database. From the command line (shown below by the "#" prompt) and from inside the SQLite console (show by the "sqlite>" prompt).

In the console mode, all administration command begin with a leading ".", eg. ".help" and ".quit".

Use the Database