sql错误码

含义错误码备注
#define SQLITE_OK0成功Successful result
错误码开始
#define SQLITE_ERROR1SQL错误 或 丢失数据库SQL error or missing database
#define SQLITE_INTERNAL2SQLite 内部逻辑错误Internal logic error in SQLite
#define SQLITE_PERM3拒绝访问Access permission denied
#define SQLITE_ABORT4回调函数请求取消操作Callback routine requested an abort
#define SQLITE_BUSY5数据库文件被锁定The database file is locked
#define SQLITE_LOCKED6数据库中的一个表被锁定A table in the database is locked
#define SQLITE_NOMEM7某次 malloc() 函数调用失败A malloc() failed
#define SQLITE_READONLY8尝试写入一个只读数据库Attempt to write a readonly database
#define SQLITE_INTERRUPT9操作被 sqlite3_interupt() 函数中断Operation terminated by sqlite3_interrupt()
#define SQLITE_IOERR10发生某些磁盘 I/O 错误Some kind of disk I/O error occurred
#define SQLITE_CORRUPT11数据库磁盘映像不正确The database disk image is malformed
#define SQLITE_NOTFOUND12sqlite3_file_control() 中出现未知操作数Unknown opcode in sqlite3_file_control()
#define SQLITE_FULL13因为数据库满导致插入失败Insertion failed because database is full
#define SQLITE_CANTOPEN14无法打开数据库文件Unable to open the database file
#define SQLITE_PROTOCOL15数据库锁定协议错误Database lock protocol error
#define SQLITE_EMPTY16数据库为空Database is empty
#define SQLITE_SCHEMA17数据结构发生改变The database schema changed
#define SQLITE_TOOBIG18字符串或二进制数据超过大小限制String or BLOB exceeds size limit
#define SQLITE_CONSTRAINT19由于约束违例而取消Abort due to constraint violation
#define SQLITE_MISMATCH20数据类型不匹配Data type mismatch
#define SQLITE_MISUSE21不正确的库使用Library used incorrectly
#define SQLITE_NOLFS22使用了操作系统不支持的功能Uses OS features not supported on host
#define SQLITE_AUTH23授权失败Authorization denied
#define SQLITE_FORMAT24附加数据库格式错误Auxiliary database format error
#define SQLITE_RANGE25传递给sqlite3_bind()的第二个参数超出范围2nd parameter to sqlite3_bind out of range
#define SQLITE_NOTADB26被打开的文件不是一个数据库文件File opened that is not a database file
#define SQLITE_ROW100sqlite3_step() 已经产生一个行结果sqlite3_step() has another row ready
#define SQLITE_DONE101sqlite3_step() 完成执行操作sqlite3_step() has finished executing
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值