Project Library - 1
Project Library - 1
AISSCE-2020-21
“INFORMATICS PRACTICES”
BASED ON
GUIDED BY-
SUSHIL KUMAR
PGT (Comp. Sci.)
ACKNOWLEDGEMENT
'''
'''
# Code for creating database- library [Must be executed only ONCE]
'''
# Code for creating table - book in the database- library [Must be executed
only ONCE]
mycur=mycon.cursor()
if mycon.is_connected():
print("Connected to MYSQL database successfully")
mycur= mycon.cursor()
else:
print("\t\t\t Record NOT found..!!!")
if count!=0:
print("\t\t Book Records found.........:\n")
for (bno,bname,bauth,bprice,bqty) in data:
print("Book Code:\t",bno)
print("Book Name:\t",bname)
print("Book Author:\t",bauth)
print("Book Price:\t",bprice)
print("Book Quantity:\t",bqty)
print(".................................")
else:
print("\t\t\t Record NOT found..!!!")
if count!=0:a
print("\t\t Book Records found.........:\n")
for (bno,bname,bauth,bprice,bqty) in data:
print("Book Code:\t",bno)
print("Book Name:\t",bname)
print("Book Author:\t",bauth)
print("Book Price:\t",bprice)
print("Book Quantity:\t",bqty)
print(".................................")
else:
print("\t\t\t Record NOT found..!!!")