Sqlite3 command Overview

Source: Internet
Author: User

(1) enter the database:

 

Sqlite3 database name.

 

(2) help:

 

. Help

 

(3) display database information:

 

. Databases

 

(4) display tables in the database:

 

. Tables

 

(5) display table structure:

 

. Schema table name

 

(6) Exit the database:

 

. Exit or. Quit

 

(7) set the display format of select statement output results:

 

. Mode format (CSV, column, HTML, insert, line, list, tabs, TCL) [Table name]

 

(8) set the delimiter between columns of select statement output results:

 

. Separator string.

 

(9) output the result to the platform:

 

. Output stdout

 

(10) output the result to the file:

 

. Output file name.

 

(11) set the default display character of the null value after the SELECT statement is entered:

 

. Nullvalue string.

 

(12) output or disable logs:

 

. Log File Name | off

 

(13) back up the database:

 

. Backup Database Name (name) file name. DB

 

(14) set whether the output result of the SELECT statement has a field name:

 

. Header on | off

 

(15) export:

 

Sqlite3 database name. DB ". Dump"> out. SQL

 

(16) import:

 

Sqlite3 database name. DB <out. SQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.