SQLITE数据库不支持远程访问

时间:2022-03-31 00:13:11

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()