SQLite dot commands are special commands that can be used in the SQLite CLI( command prompt) to perform various tasks, such as managing the database schema, setting options, and controlling the display format.
SQLite Dot Commands are commands that we execute at the SQLite command prompt( sqlite> ). These commands are called dot commands because they start with a dot ( . ) symbol.
The general syntax of the command is as follows:
Note that there is no space between sqlite> prompt and the dot command. Unlike SQLite statements, these commands do not require a semi-colon (;) to terminate.
SQLite Dot Commands
Type the following command at the prompt to get the complete list of dot commands.
Some of the dot commands are as follows:
|SQLite Dot Command
|List the database names and files of the attached databases.
|This command lists all the tables in the current database.
|Show help text. We can also provide patterns for context help.
|This command is used to clone data from the existing current database into the <newdb>.
|This command displays the status information about the database. For example, like page_size, page_count, text encoding, schema
|.dbconfig ?option? ?value?
|The .dbconfig command is used to list or change sqlite3_db_config() options.
|.import <file> <table>
|This command imports the data from <file> into the
|This command will exit the SQLite prompt ( sqlite> ). The control is switched back to the Windows prompt.
It’s important to note that these commands in SQLite are not to be confused with SQL commands used in your queries. Dot commands only apply to SQLite’s command-line interface and are used to manage the environment and access information about the database and its structure.
SQLite tutorials on this website:
For more information on SQLite, visit the official website: