0% found this document useful (0 votes)
10 views8 pages

Mysql Interface With Python Cs Record

Uploaded by

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

Mysql Interface With Python Cs Record

Uploaded by

chanikran404
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

EXPT NO: INTERFACE OF PYTHON WITH MYSQL-I

DATE:

AIM: To create a program in python and connect it to MySQL

PROGRAM:

(i) create and display database:-

OUTPUT:

(ii) create and insert values in a table:-


(ii) Display table using:-

(a) fetchall()

OUTPUT:

(b) fetchmany()

OUTPUT:

(c) fetchone()

OUTPUT:

(iv) alter table:-


EXPT NO: INTERFACE OF PYTHON WITH MYSQL- II

DATE:

AIM: To create a database and table and perform various SQL queries using python-MySQL

connect

PROGRAM:

(i)create and display database:-

OUTPUT:

(ii) create table and insert values:-


(iii) display table:-

OUTPUT:

(iv) update a value:-

OUTPUT:

(v) delete a value:-

OUTPUT:
EXPT NO: INTERFACE OF PYTHON WITH

MYSQL(parameterized queries)-I

DATE:

AIM: To create a database and table and perform various SQL queries using parameterized queries

PROGRAM:

(i) create database:-

(ii) create table:-

(iii) insert values into table:-

OUTPUT:
(iv) show table:-

OUTPUT:

(v) update and show table:-

OUTPUT:

(vi) delete and show table:-

OUTPUT:
EXPT NO: INTERFACE OF PYTHON WITH

MYSQL(parameterized queries)- II

DATE:

AIM: To write a program to connect python with MySQL using parameterized queries

PROGRAM:
OUTPUT: insert values

OUTPUT: update values

OUTPUT: delete values

You might also like