文章詳情頁(yè)
SQLite 錯(cuò)誤碼整理
瀏覽:249日期:2023-04-05 14:56:09
復(fù)制代碼 代碼如下:
#define SQLITE_OK 0 /* 成功 | Successful result */
/* 錯(cuò)誤碼開(kāi)始 */
#define SQLITE_ERROR 1 /* SQL錯(cuò)誤 或 丟失數(shù)據(jù)庫(kù) | SQL error or missing database */
#define SQLITE_INTERNAL 2 /* SQLite 內(nèi)部邏輯錯(cuò)誤 | Internal logic error in SQLite */
#define SQLITE_PERM 3 /* 拒絕訪問(wèn) | Access permission denied */
#define SQLITE_ABORT 4 /* 回調(diào)函數(shù)請(qǐng)求取消操作 | Callback routine requested an abort */
#define SQLITE_BUSY 5 /* 數(shù)據(jù)庫(kù)文件被鎖定 | The database file is locked */
#define SQLITE_LOCKED 6 /* 數(shù)據(jù)庫(kù)中的一個(gè)表被鎖定 | A table in the database is locked */
#define SQLITE_NOMEM 7 /* 某次 malloc() 函數(shù)調(diào)用失敗 | A malloc() failed */
#define SQLITE_READONLY 8 /* 嘗試寫(xiě)入一個(gè)只讀數(shù)據(jù)庫(kù) | Attempt to write a readonly database */
#define SQLITE_INTERRUPT 9 /* 操作被 sqlite3_interupt() 函數(shù)中斷 | Operation terminated by sqlite3_interrupt() */
#define SQLITE_IOERR 10 /* 發(fā)生某些磁盤(pán) I/O 錯(cuò)誤 | Some kind of disk I/O error occurred */
#define SQLITE_CORRUPT 11 /* 數(shù)據(jù)庫(kù)磁盤(pán)映像不正確 | The database disk image is malformed */
#define SQLITE_NOTFOUND 12 /* sqlite3_file_control() 中出現(xiàn)未知操作數(shù) | Unknown opcode in sqlite3_file_control() */
#define SQLITE_FULL 13 /* 因?yàn)閿?shù)據(jù)庫(kù)滿導(dǎo)致插入失敗 | Insertion failed because database is full */
#define SQLITE_CANTOPEN 14 /* 無(wú)法打開(kāi)數(shù)據(jù)庫(kù)文件 | Unable to open the database file */
#define SQLITE_PROTOCOL 15 /* 數(shù)據(jù)庫(kù)鎖定協(xié)議錯(cuò)誤 | Database lock protocol error */
#define SQLITE_EMPTY 16 /* 數(shù)據(jù)庫(kù)為空 | Database is empty */
#define SQLITE_SCHEMA 17 /* 數(shù)據(jù)結(jié)構(gòu)發(fā)生改變 | The database schema changed */
#define SQLITE_TOOBIG 18 /* 字符串或二進(jìn)制數(shù)據(jù)超過(guò)大小限制 | String or BLOB exceeds size limit */
#define SQLITE_CONSTRAINT 19 /* 由于約束違例而取消 | Abort due to constraint violation */
#define SQLITE_MISMATCH 20 /* 數(shù)據(jù)類型不匹配 | Data type mismatch */
#define SQLITE_MISUSE 21 /* 不正確的庫(kù)使用 | Library used incorrectly */
#define SQLITE_NOLFS 22 /* 使用了操作系統(tǒng)不支持的功能 | Uses OS features not supported on host */
#define SQLITE_AUTH 23 /* 授權(quán)失敗 | Authorization denied */
#define SQLITE_FORMAT 24 /* 附加數(shù)據(jù)庫(kù)格式錯(cuò)誤 | Auxiliary database format error */
#define SQLITE_RANGE 25 /* 傳遞給sqlite3_bind()的第二個(gè)參數(shù)超出范圍 | 2nd parameter to sqlite3_bind out of range */
#define SQLITE_NOTADB 26 /* 被打開(kāi)的文件不是一個(gè)數(shù)據(jù)庫(kù)文件 | File opened that is not a database file */
#define SQLITE_ROW 100 /* sqlite3_step() 已經(jīng)產(chǎn)生一個(gè)行結(jié)果 | sqlite3_step() has another row ready */
#define SQLITE_DONE 101 /* sqlite3_step() 完成執(zhí)行操作 | sqlite3_step() has finished executing */
/* 錯(cuò)誤碼結(jié)束 */
#define SQLITE_OK 0 /* 成功 | Successful result */
/* 錯(cuò)誤碼開(kāi)始 */
#define SQLITE_ERROR 1 /* SQL錯(cuò)誤 或 丟失數(shù)據(jù)庫(kù) | SQL error or missing database */
#define SQLITE_INTERNAL 2 /* SQLite 內(nèi)部邏輯錯(cuò)誤 | Internal logic error in SQLite */
#define SQLITE_PERM 3 /* 拒絕訪問(wèn) | Access permission denied */
#define SQLITE_ABORT 4 /* 回調(diào)函數(shù)請(qǐng)求取消操作 | Callback routine requested an abort */
#define SQLITE_BUSY 5 /* 數(shù)據(jù)庫(kù)文件被鎖定 | The database file is locked */
#define SQLITE_LOCKED 6 /* 數(shù)據(jù)庫(kù)中的一個(gè)表被鎖定 | A table in the database is locked */
#define SQLITE_NOMEM 7 /* 某次 malloc() 函數(shù)調(diào)用失敗 | A malloc() failed */
#define SQLITE_READONLY 8 /* 嘗試寫(xiě)入一個(gè)只讀數(shù)據(jù)庫(kù) | Attempt to write a readonly database */
#define SQLITE_INTERRUPT 9 /* 操作被 sqlite3_interupt() 函數(shù)中斷 | Operation terminated by sqlite3_interrupt() */
#define SQLITE_IOERR 10 /* 發(fā)生某些磁盤(pán) I/O 錯(cuò)誤 | Some kind of disk I/O error occurred */
#define SQLITE_CORRUPT 11 /* 數(shù)據(jù)庫(kù)磁盤(pán)映像不正確 | The database disk image is malformed */
#define SQLITE_NOTFOUND 12 /* sqlite3_file_control() 中出現(xiàn)未知操作數(shù) | Unknown opcode in sqlite3_file_control() */
#define SQLITE_FULL 13 /* 因?yàn)閿?shù)據(jù)庫(kù)滿導(dǎo)致插入失敗 | Insertion failed because database is full */
#define SQLITE_CANTOPEN 14 /* 無(wú)法打開(kāi)數(shù)據(jù)庫(kù)文件 | Unable to open the database file */
#define SQLITE_PROTOCOL 15 /* 數(shù)據(jù)庫(kù)鎖定協(xié)議錯(cuò)誤 | Database lock protocol error */
#define SQLITE_EMPTY 16 /* 數(shù)據(jù)庫(kù)為空 | Database is empty */
#define SQLITE_SCHEMA 17 /* 數(shù)據(jù)結(jié)構(gòu)發(fā)生改變 | The database schema changed */
#define SQLITE_TOOBIG 18 /* 字符串或二進(jìn)制數(shù)據(jù)超過(guò)大小限制 | String or BLOB exceeds size limit */
#define SQLITE_CONSTRAINT 19 /* 由于約束違例而取消 | Abort due to constraint violation */
#define SQLITE_MISMATCH 20 /* 數(shù)據(jù)類型不匹配 | Data type mismatch */
#define SQLITE_MISUSE 21 /* 不正確的庫(kù)使用 | Library used incorrectly */
#define SQLITE_NOLFS 22 /* 使用了操作系統(tǒng)不支持的功能 | Uses OS features not supported on host */
#define SQLITE_AUTH 23 /* 授權(quán)失敗 | Authorization denied */
#define SQLITE_FORMAT 24 /* 附加數(shù)據(jù)庫(kù)格式錯(cuò)誤 | Auxiliary database format error */
#define SQLITE_RANGE 25 /* 傳遞給sqlite3_bind()的第二個(gè)參數(shù)超出范圍 | 2nd parameter to sqlite3_bind out of range */
#define SQLITE_NOTADB 26 /* 被打開(kāi)的文件不是一個(gè)數(shù)據(jù)庫(kù)文件 | File opened that is not a database file */
#define SQLITE_ROW 100 /* sqlite3_step() 已經(jīng)產(chǎn)生一個(gè)行結(jié)果 | sqlite3_step() has another row ready */
#define SQLITE_DONE 101 /* sqlite3_step() 完成執(zhí)行操作 | sqlite3_step() has finished executing */
/* 錯(cuò)誤碼結(jié)束 */
標(biāo)簽:
SQLite
相關(guān)文章:
1. SQLite3中自增主鍵相關(guān)知識(shí)總結(jié)2. SQLite教程(五):索引和數(shù)據(jù)分析/清理3. SQLite3 命令行操作指南4. SQLite字符串比較時(shí)的大小寫(xiě)問(wèn)題解決方法5. SQLite3中的日期時(shí)間函數(shù)使用小結(jié)6. 一篇文章帶你掌握SQLite3基本用法7. CentOS下更新SQLite版本8. SQLite教程(十四):C語(yǔ)言編程實(shí)例代碼(2)9. SQLite教程(三):數(shù)據(jù)表和視圖簡(jiǎn)介10. Mybatis在sqlite中無(wú)法讀寫(xiě)byte[]類問(wèn)題的解決辦法
排行榜
