Mac system comes with Sqlite3 query

Source: Internet
Author: User
Tags sqlite sqlite database

The system has its own sqlite. Easy to use, just open the terminal command-line tool and start working with the SQLite database.

Here is a simple example. Input in terminal: Sqlite3 demo.db; This opens the SQLite and creates a library called demo, which adds a table to the library: Create TABLE Admininfo (ID integer primary key, name text); Note that each command is terminated with a semicolon; Insert a record in this table: INSERT into Admininfo (ID, name) VALUES (1, ' Stormer '); Query table records: SELECT * from Admininfo; It's simple. The other commands can be found in a manual.  If it is too inconvenient to use the command line can find a GUI software to manage the SQLite database. PS://In the Mac under the command to create a database file to the specified location sqlite3/volumes/work/webdb.sqlite;

Mac system comes with Sqlite3 query (GO)

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.