SQL Practical - Removed Rs
SQL Practical - Removed Rs
OUTPUT
Program No- 25
2. '''Program to display the detail of students whose percentage is between
80 and 98 (both values included):
Display the structure of the table after creation'''
import mysql.connector as std
mycon=std.connect(host='localhost',\
user='root',\
password='12345678',\
database='school')
mycur=mycon.cursor()
mycur.execute("select * from student where percentage between 80 and 98")
for data in mycur:
print(data)
mycon.close()
OUTPUT
Program No- 26
3. Program to increment the percentage of all student by 2. and
display the table content after updating
OUTPUT:
Program No- 27
4. Program to display the detail of students in ascending order of
their percentage
OUTPUT