错误信息如下:
InvalidOperationException: Database is not open
Mono.Data.Sqlite.SqliteCommand.InitializeForReader ()
Mono.Data.Sqlite.SqliteCommand.ExecuteReader (CommandBehavior behavior)
Mono.Data.Sqlite.SqliteCommand.ExecuteReader ()
(wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteCommand:ExecuteReader ()
SQLiteHelper.ExecuteQuery (System.String queryString) (at Assets/Script/SQLiteHelper.cs:51)
SQLiteHelper.CreateTable (System.String tableName, System.String[] colNames, System.String[] colTypes) (at Assets/Script/SQLiteHelper.cs:205)
SQLiteDemo.Start () (at Assets/Script/SQLiteDemo.cs:20)
Unty 使用SQLITE 运行时出现“database is not open”
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
6条回答 默认 最新
- threenewbee 2016-10-23 08:48关注
看下你的sqlite数据库文件是否存在,在指定的目录下。并且可以读取
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报