தேதி உள்ள நெடுவரிசையில் வினவல்
பின்வரும் எடுத்துக்காட்டில் 2001ல் பிறந்த மாணவர்களின் பெயர்
மற்றும் தரவரிசை காண்பிக்கப்பட்டுள்ளது.
எடுத்தக்காட்டு 15.6 -1
import sqlite3
connection =
sqlite3.connect("Academy.db")
cursor = connection.cursor()
cursor.execute("SELECT Rollno,sname FROM student
WHERE(Birth_date>='2001-01-01' AND
Birth_date<='2001-12-01')")
result = cursor.fetchall()
print(*result,sep="\n")
வெளியீடு
(5, 'VARUN')