0% found this document useful (0 votes)
19 views1 page

Python Database API Overview

The document discusses Python's database API, which supports various database servers like MySQL and Oracle. It describes the functionality of a cursor object that allows interaction with the database and mentions the MySQLdb interface for connecting to MySQL servers. Key methods such as close, commit, and rollback are highlighted as part of database operations.

Uploaded by

amoghstudy18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Python Database API Overview

The document discusses Python's database API, which supports various database servers like MySQL and Oracle. It describes the functionality of a cursor object that allows interaction with the database and mentions the MySQLdb interface for connecting to MySQL servers. Key methods such as close, commit, and rollback are highlighted as part of database operations.

Uploaded by

amoghstudy18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

8

" c arraysize)
cclose)
cexecute(sql. params) " Python database APl supports a wide range of
database servers such as Godfly, MySQL, Oracle,
" [Link](sql, seq-of-params) Sybase etc.
Cursor obi abaseAPI
It provides a minimal standard for working with
and m database.
tal

Database object method


" close)
" commit) OSWA L
cursor0
Jnterface of Pythan
rollback(0
with an SQL database CBSE
Sample
Cursor MySQLdb " MySQLdb is an interface for connecting to a Question
MySQL database servers from Python.
" Connet method or MySQLdb interface is used to
" A cursor is a Python object that enables reate a connection object using MySQLdb module. Papers,
you to work with the database.
" It is positioned at a particular location
within a table in the database. Trace the Mind Map
First Level Second Level Third Level COMPUTER
SCIENCE,
Clas-12

You might also like