SQL logic error or missing database no such table xxx

                System.Data.SQLite.SQLiteException (0x80004005): SQL logic error or missing database no such table: xxx


错误原因:在连接数据库时,数据库文件没有使用绝对路径:
new SQLiteConnection("Data Source=xxx.sqlite;Version=3;");


解决方法:指定数据库文件绝对路径即可
new SQLiteConnection("Data Source=D:\111\222\333\xxx.sqlite;Version=3;");           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自blog.csdn.net/hfdgjhv/article/details/86493466