C:\Users\USER>sqlite3 MovieSite.db
'sqlite3' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\USER>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> sqlite3 MovieSite.db
File "<stdin>", line 1
sqlite3 MovieSite.db
^
SyntaxError: invalid syntax
我运行下面的命令没问题:
>>> import sqlite3
>>> conn = sqlite3.connect('test.db')
>>> cursor = conn.cursor()
>>> cursor.execute('create table user (id var 作者: crossin先生 时间: 2017-1-4 20:50