SQLITE数据库不支持远程访问

SQLITE数据库不支持远程访问

 

import sqlite3
conn=sqlite3.connect(‘aa1.db‘)
c = conn.cursor()
c.execute(‘‘‘CREATE TABLE test1
(ID INTEGER PRIMARY KEY AUTOINCREMENT,
RIQI TEXT NOT NULL,
dn text not null,
CISHU INT NOT NULL);‘‘‘)
print("Table created successfully")
conn.commit()
conn.close()

相关推荐