sqlit--Learning Tutorial (command)

Source: Internet
Author: User
Tags sqlite

This time only tests the operation on Windows to see the installation of other versions: Http://www.runoob.com/sqlite/sqlite-installation.html

SqliteCommand

This chapter will explain the simple but useful commands that SQLite programmers use. These commands are called SQLite point commands, which differ in that they do not end with semicolons ;

Let's type a simple sqlite3 command at the command prompt, and you can use various SQLite commands at the SQLite command prompt.

To get a list of available point commands, you can enter ". Help" at any time. For example:

The above command displays a list of the various important SQLite point commands, as follows:

Let's try using the . Show command to see the default settings for the SQLite command prompt.

Make sure there are no spaces between the sqlite> prompt and the point command, otherwise it will not work correctly.

Formatted output

You can use the following point commands to format the output as listed below for this tutorial:

Sqlite_master form

The primary table holds the key information for the database table and names it as sqlite_master. To view a summary of a table, you can do this as follows:

SQLite;.  Schema Sqlite_master 

This will produce the following results:

sqlit--Learning Tutorial (command)

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.