sqlite3的几个主要方法

  • sqlite3_open() - Opens specified database file. If the database file does not already exist, it is created.
  • sqlite3_close() - Closes a previously opened database file.
  • sqlite3_prepare_v2() - Prepares a SQL statement ready for execution.
  • sqlite3_step() - Executes a SQL statement previously prepared by the sqlite3_prepare_v2() function.
  • sqlite3_column_<type>() - Returns a data field from the results of a SQL retrieval operation where <type> is replaced by the data type of the data to be extracted (text, blob, bytes, int, int16 etc).
  • sqlite3_finalize() - Deletes a previously prepared SQL statement from memory.
  • 'sqlite3_exec() - Combines the functionality of sqlite3_prepare_v2(), sqlite3_step() and sqlite3_finalize() into a single function call.

你可能感兴趣的:(sql,sqlite,function,File,database)