错误代码门户
SQLiteSQLite错误代码

SQLITE_LOCKED

locked

其他表示形式:6

代码 SQLITE_LOCKED · SQLite 报告的问题。

SQLITE_LOCKED 结果代码表示由于同一数据库连接内发生冲突或与使用共享缓存的不同数据库连接发生冲突,写入操作无法继续。 例如,当另一个线程正在同一数据库连接上读取该表时,无法运行 DROP TABLE 语句,因为删除该表会从并发读取器下删除该表。 SQLITE_LOCKED 结果代码与 SQLITE_BUSY 的不同之处在于,SQLITE_LOCKED 指示同一数据库连接(或与共享缓存的连接)上的冲突,而 SQLITE_BUSY 指示与不同数据库连接(可能在不同进程中)的冲突。

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

The SQLITE_LOCKED result code indicates that a write operation could not continue because of a conflict within the same database connection or a conflict with a different database connection that uses a shared cache. For example, a DROP TABLE statement cannot be run while another thread is reading from that table on the same database connection because dropping the table would delete the table out from under the concurrent reader. The SQLITE_LOCKED result code differs from SQLITE_BUSY in that SQLITE_LOCKED indicates a conflict on the same database connection (or on a connection with a shared cache) whereas SQLITE_BUSY indicates a conflict with a different database connection, probably in a different process.

故障排除与诊断链接

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

此条目仅链接至官方代码参考文档。尚未验证单独的故障排除步骤。