加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

sqlite3的几个主要方法

发布时间:2020-12-12 20:43:34 所属栏目:百科 来源:网络整理
导读: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. sql

  • 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读