import sqlite3
connection=sqlite3.connect('coachdata.sqlite')
cursor=connection.cursor();
'''cursor.execute("""create table athletes(id integer primary key autoincrement unique not null,
name text not null,
dob date not null
)""")'''
#创建表
#cursor.execute("insert into athletes(name,dob) values(?,?)",('zzc','1990-0210'));
#插入表
cursor.execute("select * from athletes")
#查询表
print cursor.fetchall()
connection.commit()
#一定要提交
connection.close()