Advertisements
Advertisements
प्रश्न
Give a python statement Using the where clause.
टीपा लिहा
Advertisements
उत्तर
import sqlite3
connection = sqlite3.
connect(“Academy, db”)
cursor = connection. cursor()
cursor, execute (“SELECT DISTINCT (Grade) FROM student where gender=’M'”)
result = cursor. fetchall()
print(*result, sep=”\n”)
OUTPUT:
(‘B’,)
(‘A’,)
(‘C’,)
(‘D’,)
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
