sqlite - 从错误代码中获取 SQLite3 错误消息

标签 sqlite

使用 sqlite3_errmsg() 存在(潜在)问题:

it might be the case that a second error occurs on a separate thread in between the time of the first error and the call to these interfaces



那么如果我已经有某个函数返回的错误代码,我可以通过其他方式得到相应的错误信息吗?

最佳答案

您可以使用 sqliteErrStr() 的公共(public) API 包装器

SQLITE_API const char *sqlite3_errstr(int rc);

关于sqlite - 从错误代码中获取 SQLite3 错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10229142/

相关文章:

sql - 编写复杂查询的更好/正确的方法

ios - 如何将 NSMutableArray 值共享给 MFMailComposeViewController

android.database.sqlite.SQLiteException : near "0": syntax error: ALTER TABLE data ADD COLUMN 0 INTEGER

php - 使用插入CI的数据库锁定错误

android - 从 SQLite 数据库表中删除所有表行

sql - "BEGIN..COMMIT;"在 SQLite 中失败

Android sqlite 更新失败

android - sqlite "DROP TABLE IF EXISTS"android中的错误

Android SQLite 更新在 AsyncTask 中无法在后台运行

c# - sqlite数据库位置uwp