文章詳情頁(yè)
SQLite 錯(cuò)誤碼整理
瀏覽:210日期: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. sQlite常用語(yǔ)句以及sQlite developer的使用與注冊(cè)2. SQLITE3 使用總結(jié)3. SQLite教程(十二):鎖和并發(fā)控制詳解4. Sqlite數(shù)據(jù)庫(kù)里插入數(shù)據(jù)的條數(shù)上限是5005. sqlite時(shí)間戳轉(zhuǎn)時(shí)間語(yǔ)句(時(shí)間轉(zhuǎn)時(shí)間戳)6. SQLite教程(八):命令行工具介紹7. SQLite中重置自動(dòng)編號(hào)列的方法8. SQLite教程(二):C/C++接口簡(jiǎn)介9. SQLite3中自增主鍵相關(guān)知識(shí)總結(jié)10. SQLite字符串比較時(shí)的大小寫(xiě)問(wèn)題解決方法
排行榜
