Professional Documents
Culture Documents
Report File - XII - LAB PROGRAMS 19 - 21
Report File - XII - LAB PROGRAMS 19 - 21
RESULT Thus a database connectivity program to create a table, to insert and display the records from the
table student has been created in Python and executed successfully.
Ex. No: 20 INTERFACING PYTHON WITH MYSQL
DATABASE CONNECTIVITY APPLICATION PROGRAM - UPDATE RECORDS
AIM: To write a database connectivity program in Python to establish connection to a MySQL database
‘SCHOOL’ and to do the following.
i) To update the records into the table ‘student’ for the given rollno
ii) To retrieve and display all the records stored into the table ‘student’
SOURCE
CODE:
RESULT Thus a database connectivity program to update and display the records from the table student has
been created in Python and executed successfully.
Ex. No: 21 INTERFACING PYTHON WITH MYSQL
DATABASE CONNECTIVITY APPLICATION PROGRAM - DELETE RECORDS
AIM: To write a database connectivity program in Python to establish connection to a MySQL database
‘SCHOOL’ and to do the following.
i) To delete the records from the table ‘Student’ for the given rollno
ii) To retrieve and display all the records who have secured marks in the range of 80 to 100 from
the table ‘Student’
SOURCE
CODE:
RESULT Thus a database connectivity program to delete and display the records from the table student has
been created in Python and executed successfully.