shivam cs file
shivam cs file
P PUBLIC SCHOOL
JAGDISHPURAM GHAZIPUR
EXAMINER SIGN
CONTENTS
➢ Certificate
➢ Acknowledgement
➢ Introduction
➢ MY SQL database
➢ Outputs
➢ Reference
CERTIFICATE
Principal
ACKNOWLEDGEMENT
It is with pleasure that I acknowledge my
Sincere gratitude to our teacher, MR.
Sanjeev sir who taught and Undertook the
responsibility of teaching The subject
computer science. I have Been greatly
benefited from his classes.
I am especially indebted to our Principal
MR. SS Kushwaha who has always been
A source of encouragement and support
And
without whose inspiration this project
Would not have been a successful I would
Like to place on record heartfelt thanks to
Him.
Finally, I would like to express my Sincere
appreciation for all the other Students for
my batch their friendship & the fine time
that we all shared Together.
HARDWARES AND
SOFTWARES REQUIRED
HARDWARES
1.Desktop/laptop
2.Mobile phone
SOFTWARES
1.Python(latest version)
2.MY SQL
3.Python connector module
INTRODUCTION
d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SYSTE
M")
c = d.cursor()
c.execute("SELECT * FROM STUDENT
WHERE Name_is LIKE '%{}%'".format(k))
a = c.fetchall()
if len(a) >= 1:
for i in a:
print("Admission no:", i[0])
print("Name_is is:", i[1])
print("Sex:", i[2])
print("Class:", i[3])
print("Sec:", i[4])
print("Phone_number_is is:", i[5])
print("Email_id:", i[6])
print("Stream is:", i[7])
print("PERCENTAGE:",i[3])
print("----------------------------------------
------------")
else:
print("STUDENT Details Not Found")
d.commit()
# Function to update STUDENT details
def update_details():
d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SYSTE
M")
c = d.cursor()
d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SY
STEM")
c = d.cursor()
c.execute("SELECT PERCENTAGE
FROM STUDENT WHERE Name_is LIKE
'%{}%'".format(k))
s = c.fetchall()
for i in s:
print("PERCENTAGE:", i)
print("---------------------------------------
--------------")
d.commit()
# Function to add STUDENT details
def add_STUDENT():
print(".................. ADD STUDENT DETAILS
......................")
➢ PYTHON
HTTPS:/ /w ww. PYTHON . ORG/
➢ MYSQL
HTTPS:/ / WWW.MYSQL.COM /
➢ WIKIPEDIA
Https://www.wikipedia.org/