Basic Database Programming

Source: Internet
Author: User

underlying storage:the underlying storage of a database typically uses a file system
python can access the database through a database interface or ORMORM does not write SQL statements by itself
PYTHONDB is the interface program required to access the database, and the interface program is a Python module that provides the interface of the database client library.
python accesses the database through the Db_api interface, DB_API provides the access interface for different databases, and porting the code in different databases is simple
Db-api Function PropertiesThe Connect method generates a Connect object that is used to link the databaseConnection object, to communicate with the database, you must first establish a connection with the database. Close () closes the database linkCommite () Submit the current thing

Python uses different packages to connect to the database, but all follow the Db_api interface, so basically it's almost
The ORM database table is converted to a Python class






















































From for notes (Wiz)

Basic Database Programming

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.