0% found this document useful (0 votes)
5 views3 pages

Source Code

The document outlines a project on Hospital Management developed by S K MAR under the supervision of Mr. VI A SI GH DAGAR for the academic year 2024-25, adhering to CBSE guidelines. It includes an introduction, functions and modules related to Python and MySQL, and a bibliography of resources used. Key functions like connect(), cursor(), execute(), fetchall(), and commit() are explained in the context of database operations.
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)
5 views3 pages

Source Code

The document outlines a project on Hospital Management developed by S K MAR under the supervision of Mr. VI A SI GH DAGAR for the academic year 2024-25, adhering to CBSE guidelines. It includes an introduction, functions and modules related to Python and MySQL, and a bibliography of resources used. Key functions like connect(), cursor(), execute(), fetchall(), and commit() are explained in the context of database operations.
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
You are on page 1/ 3

INTRODUCTION

PYTHON SOURCE CODE

Introduction
About Hospital

. Future Scope Of The Project

Functions & Modules

Python Source Code

Output Of The Programs

Bibliography
BIBLIOGRAPHY

This is to certify that S K MAR of class Xll – B has worked


successfully under the supervision of Mr.VI A SI GH DAGAR during

academic year 2024 –25 on the project “Hospital Management


as per the guidelines issued by Central Board of Secondary
Education (CBSE).

1.Class 12 CS Sumita Arora Book


2.Class 11 CS Sumita Arora Book
3.Mysql
4.Python IDLE
5.Chatgpt.com
Signature
6.Adobe of Subject
Acrobat Signature of External
Teacher Examiner

THANK YOU Signature of Principal


Functions & Modules
1.connect():
The connect() function in MySQL is used to establish a connection
between a Python application and a MySQL database. It is provided by the
mysql.connector library or other similar libraries like pymysql

2.cursor():
The cursor() function in MySQL is used to create a cursor object, which
allows you to interact with the database by executing SQL queries and
retrieving results. It is a part of the database connection object in libraries
like mysql.connector, pymysql, etc.

3.execute():
The execute() function in Python (when used with database libraries like
mysql.connector, sqlite3, or pymysql) is utilized to execute SQL statements
against a database. It is a method of the cursor object, which you obtain
after creating a connection to the database.

4.fetchall():
The fetchall() method is a powerful tool for retrieving and processing all
results from a database query in Python. While it is convenient,care must
be taken with large datasets to manage memory usage effectively. Use it
when working with moderate-sized data or after ensuring thatthe results
. won't overload system memory.

5.commit():
The commit() function in Python (used with database libraries like
mysql.connector, pymysql, or sqlite3) is used to save the changes made to
the database. It ensures that the modifications performed by data
manipulation queries (INSERT, UPDATE, DELETE) are permanently stored
in the database.

6.mysql.connector
The mysql.connector module in Python is a library provided by Oracle to
connect to a MySQL database and perform various operations. It is part of
the official Python MySQL package and allows for seamless integration of
Python applications with MySQL databases.

input(), print(), list(), dict(zip() etc. are the various functions used in this project.

You might also like