Heim  >  Artikel  >  Backend-Entwicklung  >  PHP SQlite 函数库详解_PHP教程

PHP SQlite 函数库详解_PHP教程

WBOY
WBOYOriginal
2016-07-13 17:39:10754Durchsuche

  PHP SQlite数据库对于拥有相当经验的PHP程序员来说是不会陌生的,但是要想完全掌握PHP SQlite数据库的相关函数的应用也不是一件易事。下面我们就为大家总结了一些PHP SQlite数据库的相关函数。

 

 

 

 

  PHP SQlite数据库之sqlite_array_query —— 发送一条 SQL 查询,并返回一个数组。

  sqlite_busy_timeout —— 
  设置超时时间(busy timeout duration),或者频繁的用户失去权限(disable busy handlers)。

  sqlite_changes ——
  返回被最新的SQL 查询(changed by the most recent SQL statement)改变的行数。

  sqlite_close ——
  关闭一个打开的SQLite数据库。

  sqlite_column ——
  在当前的行中取得一列(a column from the current row of a result set)。

  sqlite_create_aggregate ——
  Register an aggregating UDF for use in SQL statements。

  sqlite_create_function ——
  Registers a "regular" User Defined Function for use in SQL statements。

  sqlite_current ——
  在返回的数组中取得当前的行(the current row from a result set as an array)。

  sqlite_error_string ——
  返回错误代码的原始描述(the textual description of an error code)。

  sqlite_escape_string ——
  释放一个用于查询的字符串(Escapes a string for use as a query parameter)。

  sqlite_fetch_array ——
   取得下一行并设置成一个数组(the next row from a result set as an array)。

  sqlite_fetch_single ——
   取得第一列并设置成一个字符串(Fetches the first column of a result set as a string)。

  sqlite_fetch_string ——
  sqlite_fetch_single()的别名。

  sqlite_field_name ——
  取得结果中指定字段的字段名。

  sqlite_has_more ——
  返回是否有更多可用的行(whether or not more rows are available)。

  sqlite_last_error ——
  返回数据库的最新的错误代码(the error code of the last error for a database)。

  sqlite_last_insert_rowid ——
  返回最新插入的行的行号(the most recently inserted row)。

  sqlite_libencoding ——
  返回SQLite库(SQLite library)的编码(encoding)。

  PHP SQlite数据库之sqlite_libversion ——
  返回SQLite库(SQLite library)的版本。

  sqlite_next ——
  返回下一行的行号。

  sqlite_num_fields ——
  取得结果集中字段的数目。

  sqlite_num_rows ——
  取得结果集中行的数目。

  sqlite_open ——
   打开一个SQLite数据库。如果文件不存在则尝试创建之。

  sqlite_popen ——
  用永久连接的方式打开一个SQLite数据库。如果文件不存在则尝试创建之。

  sqlite_query ——
  发送一条 SQL 查询,并返回一个结果句柄(a result handle)。

  sqlite_rewind ——
  倒回第一行(Seek to the first row number)。

  sqlite_seek ——
  在缓存结果中查找特定的行号(Seek to a particular row number of a buffered result set)。

  sqlite_udf_decode_binary ——
  Decode binary data passed as parameters to an UDF。

  sqlite_udf_encode_binary ——
   Encode binary data before returning it from an UDF。

  PHP SQlite数据库之sqlite_unbuffered_query ——
  发送一条 SQL 查询,并不获取和缓存结果的行。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/486426.htmlTechArticlePHP SQlite数据库对于拥有相当经验的PHP程序员来说是不会陌生的,但是要想完全掌握PHP SQlite数据库的相关函数的应用也不是一件易事。下面...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn