? ociwritetemporarylob
簡介 ?
Bejson.com
PHP Manual
針對各數(shù)據(jù)庫系統(tǒng)對應的擴展
PostgreSQL
PostgreSQL
簡介
安裝/配置
需求
安裝
運行時配置
資源類型
預定義常量
范例
Basic usage
Basic usage
PostgreSQL 函數(shù)
pg_affected_rows
— 返回受影響的記錄數(shù)目
pg_cancel_query
— 取消異步查詢
pg_client_encoding
— 取得客戶端編碼方式
pg_close
— 關閉一個 PostgreSQL 連接
pg_connect_poll
— 正在進行嘗試輪詢 PostgreSQL 鏈接狀態(tài)。
pg_connect
— 打開一個 PostgreSQL 連接
pg_connection_busy
— 獲知連接是否為忙
pg_connection_reset
— 重置連接(再次連接)
pg_connection_status
— 獲得連接狀態(tài)
pg_consume_input
— Reads input on the connection
pg_convert
— 將關聯(lián)的數(shù)組值轉(zhuǎn)換為適合 SQL 語句的格式。
pg_copy_from
— 根據(jù)數(shù)組將記錄插入表中
pg_copy_to
— 將一個表拷貝到數(shù)組中
pg_dbname
— 獲得數(shù)據(jù)庫名
pg_delete
— 刪除記錄
pg_end_copy
— 與 PostgreSQL 后端同步
pg_escape_bytea
— 轉(zhuǎn)義 bytea 類型的二進制數(shù)據(jù)
pg_escape_identifier
— Escape a identifier for insertion into a text field
pg_escape_literal
— Escape a literal for insertion into a text field
pg_escape_string
— 轉(zhuǎn)義 text/char 類型的字符串
pg_execute
— Sends a request to execute a prepared statement with given parameters, and waits for the result
pg_fetch_all_columns
— Fetches all rows in a particular result column as an array
pg_fetch_all
— 從結(jié)果中提取所有行作為一個數(shù)組
pg_fetch_array
— 提取一行作為數(shù)組
pg_fetch_assoc
— 提取一行作為關聯(lián)數(shù)組
pg_fetch_object
— 提取一行作為對象
pg_fetch_result
— 從結(jié)果資源中返回值
pg_fetch_row
— 提取一行作為枚舉數(shù)組
pg_field_is_null
— 測試字段是否為 null
pg_field_name
— 返回字段的名字
pg_field_num
— 返回字段的編號
pg_field_prtlen
— 返回打印出來的長度
pg_field_size
— 返回指定字段占用內(nèi)部存儲空間的大小
pg_field_table
— Returns the name or oid of the tables field
pg_field_type_oid
— Returns the type ID (OID) for the corresponding field number
pg_field_type
— 返回相應字段的類型名稱
pg_flush
— 刷新鏈接中已處理的數(shù)據(jù)查詢
pg_free_result
— 釋放查詢結(jié)果占用的內(nèi)存
pg_get_notify
— Ping 數(shù)據(jù)庫連接
pg_get_pid
— Ping 數(shù)據(jù)庫連接
pg_get_result
— 取得異步查詢結(jié)果
pg_host
— 返回和某連接關聯(lián)的主機名
pg_insert
— 將數(shù)組插入到表中
pg_last_error
— 得到某連接的最后一條錯誤信息
pg_last_notice
— 返回 PostgreSQL 服務器最新一條公告信息
pg_last_oid
— 返回上一個對象的 oid
pg_lo_close
— 關閉一個大型對象
pg_lo_create
— 新建一個大型對象
pg_lo_export
— 將大型對象導出到文件
pg_lo_import
— 將文件導入為大型對象
pg_lo_open
— 打開一個大型對象
pg_lo_read_all
— 讀入整個大型對象并直接發(fā)送給瀏覽器
pg_lo_read
— 從大型對象中讀入數(shù)據(jù)
pg_lo_seek
— 移動大型對象中的指針
pg_lo_tell
— 返回大型對象的當前指針位置
pg_lo_truncate
— Truncates a large object
pg_lo_unlink
— 刪除一個大型對象
pg_lo_write
— 向大型對象寫入數(shù)據(jù)
pg_meta_data
— 獲得表的元數(shù)據(jù)
pg_num_fields
— 返回字段的數(shù)目
pg_num_rows
— 返回行的數(shù)目
pg_options
— 獲得和連接有關的選項
pg_parameter_status
— Looks up a current parameter setting of the server
pg_pconnect
— 打開一個持久的 PostgreSQL 連接
pg_ping
— Ping 數(shù)據(jù)庫連接
pg_port
— 返回該連接的端口號
pg_prepare
— Submits a request to create a prepared statement with the given parameters, and waits for completion
pg_put_line
— 向 PostgreSQL 后端發(fā)送以 NULL 結(jié)尾的字符串
pg_query_params
— Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text
pg_query
— 執(zhí)行查詢
pg_result_error_field
— Returns an individual field of an error report
pg_result_error
— 獲得查詢結(jié)果的錯誤信息
pg_result_seek
— 在結(jié)果資源中設定內(nèi)部行偏移量
pg_result_status
— 獲得查詢結(jié)果的狀態(tài)
pg_select
— 選擇記錄
pg_send_execute
— Sends a request to execute a prepared statement with given parameters, without waiting for the result(s)
pg_send_prepare
— Sends a request to create a prepared statement with the given parameters, without waiting for completion
pg_send_query_params
— Submits a command and separate parameters to the server without waiting for the result(s)
pg_send_query
— 發(fā)送異步查詢
pg_set_client_encoding
— 設定客戶端編碼
pg_set_error_verbosity
— Determines the verbosity of messages returned by pg_last_error and pg_result_error
pg_socket
— Get a read only handle to the socket underlying a PostgreSQL connection
pg_trace
— 啟動一個 PostgreSQL 連接的追蹤功能
pg_transaction_status
— Returns the current in-transaction status of the server
pg_tty
— 返回該連接的 tty 號
pg_unescape_bytea
— 取消 bytea 類型中的字符串轉(zhuǎn)義
pg_untrace
— 關閉 PostgreSQL 連接的追蹤功能
pg_update
— 更新表
pg_version
— Returns an array with client, protocol and server version (when available)
PgSql\Connection
— The PgSql\Connection class
PgSql\Result
— The PgSql\Result class
PgSql\Lob
— The PgSql\Lob class