找不到.db路径
错误打印出来:
SQL logic error or missing database no such table:XXX
其中XXX是你加载的数据库文件的表名。
博主在开发时,出错的原因是,加载的数据库文件名称错了,拷贝的是demo工程,文件名没改过来。
参数名称太长
错误打印出来:
Insufficient parameters supplied to the command
参考【2】,将@后的参数名改短就OK了。
参考
【1】SQL logic error or missing database no such table: xxx
【2】C#操作SQLite数据库时出错总结–错误:“Insufficient parameters supplied to the command”