PHP SQlite數(shù)據(jù)庫相關(guān)函數(shù)概覽
PHP SQlite數(shù)據(jù)庫對于擁有相當(dāng)經(jīng)驗的PHP程序員來說是不會陌生的,但是要想完全掌握PHP SQlite數(shù)據(jù)庫的相關(guān)函數(shù)的應(yīng)用也不是一件易事。下面我們就為大家總結(jié)了一些PHP SQlite數(shù)據(jù)庫的相關(guān)函數(shù)。#t#
PHP SQlite數(shù)據(jù)庫之sqlite_array_query —— 發(fā)送一條 SQL 查詢,并返回一個數(shù)組。
sqlite_busy_timeout —— 設(shè)置超時時間(busy timeout duration),或者頻繁的用戶失去權(quán)限(disable busy handlers)。
sqlite_changes —— 返回被***的SQL 查詢(changed by the most recent SQL statement)改變的行數(shù)。
sqlite_close —— 關(guān)閉一個打開的SQLite數(shù)據(jù)庫。
sqlite_column —— 在當(dāng)前的行中取得一列(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 —— 在返回的數(shù)組中取得當(dāng)前的行(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 —— 取得下一行并設(shè)置成一個數(shù)組(the next row from a result set as an array)。
sqlite_fetch_single —— 取得***列并設(shè)置成一個字符串(Fetches the first column of a result set as a string)。
sqlite_fetch_string —— sqlite_fetch_single()的別名。
sqlite_field_name —— 取得結(jié)果中指定字段的字段名。
sqlite_has_more —— 返回是否有更多可用的行(whether or not more rows are available)。
sqlite_last_error —— 返回數(shù)據(jù)庫的***的錯誤代碼(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數(shù)據(jù)庫之sqlite_libversion —— 返回SQLite庫(SQLite library)的版本。
sqlite_next —— 返回下一行的行號。
sqlite_num_fields —— 取得結(jié)果集中字段的數(shù)目。
sqlite_num_rows —— 取得結(jié)果集中行的數(shù)目。
sqlite_open —— 打開一個SQLite數(shù)據(jù)庫。如果文件不存在則嘗試創(chuàng)建之。
sqlite_popen —— 用***連接的方式打開一個SQLite數(shù)據(jù)庫。如果文件不存在則嘗試創(chuàng)建之。
sqlite_query —— 發(fā)送一條 SQL 查詢,并返回一個結(jié)果句柄(a result handle)。
sqlite_rewind —— 倒回***行(Seek to the first row number)。
sqlite_seek —— 在緩存結(jié)果中查找特定的行號(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數(shù)據(jù)庫之sqlite_unbuffered_query —— 發(fā)送一條 SQL 查詢,并不獲取和緩存結(jié)果的行。