摘要:
import sqlite3 conn = sqlite3.connect('E:\\student.db') print("Opened database successfully") c = conn.cursor() c.execute('''CREATE TABLE if not exists STUDENT (ID INT PRIMARY KEY NOT NULL, STU_NAME C 阅读全文
摘要:
import sqlite3 cx = sqlite3.connect('E:\\student3.db') cx.execute( '''CREATE TABLE StudentTable( ID INTEGER PRIMARY KEY AUTOINCREMENT, StuId INTEGER NOT NULL, NAME TEXT NOT NULL, CLASS INT NOT NULL ); 阅读全文