Sqlite官方说明文档

前端之家收集整理的这篇文章主要介绍了Sqlite官方说明文档前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1.SQL As Understood By SQLite

sqlite支持的表达式,操作符等。

2.Result Codes

sqlite常见错误码。
  1. #define sqlITE_OK 0 /* Successful result */
  2. /* beginning-of-error-codes */
  3. #define sqlITE_ERROR 1 /* sql error or missing database */
  4. #define sqlITE_INTERNAL 2 /* Internal logic error in sqlite */
  5. #define sqlITE_PERM 3 /* Access permission denied */
  6. #define sqlITE_ABORT 4 /* Callback routine requested an abort */
  7. #define sqlITE_BUSY 5 /* The database file is locked */
  8. #define sqlITE_LOCKED 6 /* A table in the database is locked */
  9. #define sqlITE_NOMEM 7 /* A malloc() Failed */
  10. #define sqlITE_READONLY 8 /* Attempt to write a readonly database */
  11. #define sqlITE_INTERRUPT 9 /* Operation terminated by sqlite3_interrupt()*/
  12. #define sqlITE_IOERR 10 /* Some kind of disk I/O error occurred */
  13. #define sqlITE_CORRUPT 11 /* The database disk image is malformed */
  14. #define sqlITE_NOTFOUND 12 /* Unknown opcode in sqlite3_file_control() */
  15. #define sqlITE_FULL 13 /* Insertion Failed because database is full */
  16. #define sqlITE_CANTOPEN 14 /* Unable to open the database file */
  17. #define sqlITE_PROTOCOL 15 /* Database lock protocol error */
  18. #define sqlITE_EMPTY 16 /* Database is empty */
  19. #define sqlITE_SCHEMA 17 /* The database schema changed */
  20. #define sqlITE_TOOBIG 18 /* String or BLOB exceeds size limit */
  21. #define sqlITE_CONSTRAINT 19 /* Abort due to constraint violation */
  22. #define sqlITE_MISMATCH 20 /* Data type mismatch */
  23. #define sqlITE_MISUSE 21 /* Library used incorrectly */
  24. #define sqlITE_NOLFS 22 /* Uses OS features not supported on host */
  25. #define sqlITE_AUTH 23 /* Authorization denied */
  26. #define sqlITE_FORMAT 24 /* Auxiliary database format error */
  27. #define sqlITE_RANGE 25 /* 2nd parameter to sqlite3_bind out of range */
  28. #define sqlITE_NOTADB 26 /* File opened that is not a database file */
  29. #define sqlITE_NOTICE 27 /* Notifications from sqlite3_log() */
  30. #define sqlITE_WARNING 28 /* Warnings from sqlite3_log() */
  31. #define sqlITE_ROW 100 /* sqlite3_step() has another row ready */
  32. #define sqlITE_DONE 101 /* sqlite3_step() has finished executing */
  33. /* end-of-error-codes */

猜你在找的Sqlite相关文章