#define SQLITE_OK 0 /* Successful result 操作成功*/
/* beginning-of-error-codes */
#define SQLITE_ERROR 1 /* SQL error or missing database 通常是SQL错误或缺少数据库,也许可以根据错误情况获取更多的有关信息*/
#define SQLITE_INTERNAL 2 /* Internal logic error in SQLite内部连接错误 */
#define SQLITE_PERM 3 /* Access permission denied 没有访问权限*/
#define SQLITE_ABORT 4 /* Callback routine requested an abort回调函数请求终止 */
#define SQLITE_BUSY 5 /* The database file is locked 数据库文件被锁*/
#define SQLITE_LOCKED 6 /* A table in the database is locked 数据库中的表被锁*/
#define SQLITE_NOMEM 7 /* A malloc() failed 数据库调用malloc()函数失败*/
#define SQLITE_READONLY 8 /* Attempt to write a readonly database试图对只读数据库文件进行写操作 */
#define SQLITE_INTERRUPT 9 /* Operation terminated by sqlite3_interrupt()操作被sqlite_interrupt()终止*/
#define SQLITE_IOERR 10 /* Some kind of disk I/O error occurred 某种磁盘I/O错误发生*/
#define SQLITE_CORRUPT 11 /* The database disk image is malformed 数据库磁盘文件损坏,试图将非sqlite数据库打开也会出现同样的情况*/
#define SQLITE_NOTFOUND 12 /* NOT USED. Table or record not found */
#define SQLITE_FULL 13 /* Insertion failed because database is full 因为数据库已满,所以插入操作失败。文件系统没有空间或者数据库文件无法扩展*/
#define SQLITE_CANTOPEN 14 /* Unable to open the database file sqlite无法打开数据库文件*/
#define SQLITE_PROTOCOL 15 /* NOT USED. Database lock protocol error数据库已锁或者协议错误 */
#define SQLITE_EMPTY 16 /* Database is empty 数据库表是空的*/
#define SQLITE_SCHEMA 17 /* The database schema changed 数据库模式改变*/
#define SQLITE_TOOBIG 18 /* String or BLOB exceeds size limit */
#define SQLITE_CONSTRAINT 19 /* Abort due to constraint violation 因为违反约束操作终止*/
#define SQLITE_MISMATCH 20 /* Data type mismatch 数据类型不匹配*/
#define SQLITE_MISUSE 21 /* Library used incorrectly程序库使用不正确。当你sqlite API程序使用不当时可能产生该错误 */
#define SQLITE_NOLFS 22 /* Uses OS features not supported on host使用了被机器不支持的OS功能。如果sqlite编译时启用了大文件支持,但是所在的操作系统不支持LFS,产生该错误 */
#define SQLITE_AUTH 23 /* Authorization denied 授权被否决,使用sqlite_set_authorize(0安装回调函数时返回了SQLITE_DENY*/
#define SQLITE_FORMAT 24 /* Auxiliary database format error 辅助性的数据库格式错误*/
#define SQLITE_RANGE 25 /* 2nd parameter to sqlite3_bind out of range sqlite3_bind()的第二个参数超出范围*/
#define SQLITE_NOTADB 26 /* File opened that is not a database file 打开的文件不是sqlite数据库文件*/
#define SQLITE_ROW 100 /* sqlite3_step() has another row ready sqlite_step()另一行数据已经就绪 */
#define SQLITE_DONE 101 /* sqlite3_step() has finished executing sqlite_step()完成执行*/