Introduction to SQLite Database

Source: Internet
Author: User
Tags sqlite sqlite database

SQLite is a file database, unlike mysql,oracle and other databases have a lot of processes, many languages bullet-in into their own modules, Python, PHP, Ruby Support, As a small app or larger software does not need to connect to the database on the network is a good choice, some Linux hosts will also initially install SQLite.


The simplest example code is given below:

Import sqlite3conn = Sqlite3.connect (' test.db ') cur = conn.cursor () cur.execute (' Select COUNT (*) from tab_test ') rs = cur.f Etchone () Count = Rs[0]print "Records count:", Count


Reference articles

http://www.sqlite.org/official website

http://www.sqlite.org/cli.html shell command

Http://blog.sina.com.cn/s/blog_3fc8570201000d6w.html

This article is from the "method is more than a problem" blog, please be sure to keep this source http://xubcing.blog.51cto.com/3502962/1537518

Related Article

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.