Next Index Previous

Python Examples

20. Program to read data from table using sqlite.

import sqlite3

conn = sqlite3.connect('student.db')
c = conn.cursor()
result = c.execute("SELECT * FROM admission")
for row in result:
	print(row)
conn.close()




Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands
Google+