错误代码门户
SQLiteSQLite错误代码

SQLITE_CONSTRAINT

constraint

其他表示形式:19

代码 SQLITE_CONSTRAINT · SQLite 报告的问题。

SQLITE_CONSTRAINT 错误代码表示在尝试处理 SQL 语句时发生了 SQL 约束冲突。有关失败约束的其他信息可以通过查阅随附的错误消息(通过 sqlite3_errmsg() 或 sqlite3_errmsg16() 返回)或查看扩展错误代码来找到。 SQLITE_CONSTRAINT 代码还可以用作虚拟表实现的 xBestIndex() 方法的返回值。当 xBestIndex() 返回 SQLITE_CONSTRAINT 时,表明提交给 xBestIndex() 的特定输入组合无法产生可用的查询计划,因此不应进一步考虑。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

The SQLITE_CONSTRAINT error code means that an SQL constraint violation occurred while trying to process an SQL statement. Additional information about the failed constraint can be found by consulting the accompanying error message (returned via sqlite3_errmsg() or sqlite3_errmsg16()) or by looking at the extended error code. The SQLITE_CONSTRAINT code can also be used as the return value from the xBestIndex() method of a virtual table implementation. When xBestIndex() returns SQLITE_CONSTRAINT, that indicates that the particular combination of inputs submitted to xBestIndex() cannot result in a usable query plan and should not be given further consideration.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。