我试图用以下代码将我的.sql数据库与pythonVersion2.7.9连接起来:db = sqlite3.connect("c:\\Users\\afsoon\\Desktop\\ch9learning\\sql\\genres.sql")query = """SELECT * FROM mytable where genre='folkmodule>
我像这样使用sqlite3.exe来修复一个格式错误的数据库:.output fixed.db然而,当我在SQLite的DB浏览器中打开fixed.db时,它要求我输入密码,如果我用sqlite3.exe .read它,它会显示“文件不是数据库”。sqlite3 fixed.db
Error: near line 3: file is not a database
...