Another One
Another One
class : Xiith a
roll No. : 13
subject : comPuter scieNce
subject teacher : chaNdNa sharma
mam
CERTIFICATE
Sr no. Particulars
1. Introduction
2. Function and
modules
3. Source code
5. Bibilography
INTRODUCTION
MODULE:
Import mysql.connector – To establish connection
between python and sql
FUCTIONS:
Connect() - establish connection between MYSQL and
PYTHON
Cursor() - It is a special control structure that facilitates the
row-by- row processing of records in the result set
Execute() - This function is used to execute the sql query and
retrieve records using python.
Def() - a function is block of code which only runs when it is
called
Fetchall() - This function will return all the rows from the
result set in the form of a tuple containing the records.
Fetchone( ) - This Function will return one row from the
result set in the form of a tuple containing the records.
Commit() - This function provides changes in the database
physically.
SOURCE CODE
OUTPUT -
ISSUE A BOOK –
RETURN OF BOOK –