使用 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/