Next Index Previous

Python Examples

18. Program to create a table using sqlite.

import sqlite3

conn = sqlite3.connect('student.db')
c = conn.cursor()
c.execute('''CREATE TABLE admission(rno int, name text, standard text, fee real)''')
c.execute("INSERT INTO admission VALUES (1,'Suresh','UKG',25000.00)")
conn.commit()
conn.close()


Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands
Google+