略微加速
PHP官方手册 - 互联网笔记
首页
IT
PHP手册
Elasticsearch
SVN手册
互联网
博客
登陆
注册
PHP - Manual: PostgreSQL
2025-02-27
简介 »
« ociwritetemporarylob
PHP 手册
函数参考
数据库扩展
针对各数据库系统对应的扩展
PostgreSQL
简介
安装/配置
需求
安装
运行时配置
资源类型
预定义常量
示例
Basic usage
Basic usage
PostgreSQL 函数
pg_affected_rows
— 返回受影响的记录数(元组)
pg_cancel_query
— 取消异步查询
pg_client_encoding
— 获取客户端编码
pg_close
— 关闭 PostgreSQL 连接
pg_connect
— 打开 PostgreSQL 连接
pg_connect_poll
— 对正在进行尝试进行异步的 PostgreSQL 连接轮询其状态。
pg_connection_busy
— 获取连接是否繁忙
pg_connection_reset
— 重置连接(再次连接)
pg_connection_status
— 获取连接状态
pg_consume_input
— Reads input on the connection
pg_convert
— 将关联的数组值转换为适合 SQL 语句的格式
pg_copy_from
— 将数组中的记录插入到表
pg_copy_to
— 将表复制到数组
pg_dbname
— 获取数据库名称
pg_delete
— 删除记录
pg_end_copy
— 与 PostgreSQL 后端同步
pg_escape_bytea
— 转义字符串以插入到 bytea 字段
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
— 转义字符串以供查询
pg_execute
— Sends a request to execute a prepared statement with given parameters, and waits for the result
pg_fetch_all
— 从结果中获取所有行作为数组
pg_fetch_all_columns
— Fetches all rows in a particular result column as an array
pg_fetch_array
— 获取一行作为数组
pg_fetch_assoc
— 获取一行作为关联数组
pg_fetch_object
— 获取一行作为对象
pg_fetch_result
— 从结果实例返回值
pg_fetch_row
— 提取一行作为枚举数组
pg_field_is_null
— 测试字段是否为 SQL NULL
pg_field_name
— 返回字段名
pg_field_num
— 返回名为 field 的字段编号
pg_field_prtlen
— 返回打印的长度
pg_field_size
— 返回指定字段的内部存储大小
pg_field_table
— Returns the name or oid of the tables field
pg_field_type
— 返回相应字段编号的类型名称
pg_field_type_oid
— Returns the type ID (OID) for the corresponding field number
pg_flush
— 刷新链接中已处理的数据查询
pg_free_result
— 释放查询结果占用的内存
pg_get_notify
— 获取 SQL NOTIFY 消息
pg_get_pid
— 获取后端的进程 ID
pg_get_result
— 取得异步查询结果
pg_host
— 返回和某连接关联的主机名
pg_insert
— 将数组插入到表中
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
— 读取大对象
pg_lo_read_all
— 读取整个大对象并直接发送到浏览器
pg_lo_seek
— 在大对象中寻找位置
pg_lo_tell
— 返回当前大型对象的指针位置
pg_lo_truncate
— Truncates a large object
pg_lo_unlink
— 删除一个大型对象
pg_lo_write
— 向大对象写入数据
pg_meta_data
— 获得表的元数据
pg_num_fields
— 返回结果中字段的数量
pg_num_rows
— 返回结果中行的数量
pg_options
— 获得和 connection 相关的选项
pg_parameter_status
— Looks up a current parameter setting of the server
pg_pconnect
— 打开一个持久的 PostgreSQL 连接
pg_ping
— Ping 数据库连接
pg_port
— 返回 connection 相关的端口号
pg_prepare
— Submits a request to the server to create a prepared statement with the given parameters, and waits for completion
pg_put_line
— 向 PostgreSQL 后端发送以 NULL 字符结尾的字符串
pg_query
— 执行查询
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_result_error
— 获得跟 result 相关的错误信息
pg_result_error_field
— Returns an individual field of an error report
pg_result_memory_size
— Returns the amount of memory allocated for a query result
pg_result_seek
— 在 result 实例中设定内部行偏移量
pg_result_status
— 获得查询结果的状态
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
— 发送异步查询
pg_send_query_params
— Submits a command and separate parameters to the server without waiting for the result(s)
pg_set_chunked_rows_size
— Set the query results to be retrieved in chunk mode
pg_set_client_encoding
— 设定客户端编码
pg_set_error_context_visibility
— Determines the visibility of the context's error messages returned by pg_last_error and pg_result_error
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 类型的二进制数据
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
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
官方地址:
https://www.php.net/manual/en/book.pgsql.php
有任何技术问题请点击这里
网站运营推广招聘
IT
PHP
编程语言
开发编程
Linux
科技
Elasticsearch
HTML/CSS/XML
面试
数据库
网络
JAVA
NoSQL
C/C++
Golang
Git
算法
操作系统
正则表达式
Redis
互联网
MySql
JavaScript
运维
软件
国际
架构设计
Mac OS
TCP/IP
Excel
Windows
Vim
Socket
Oracle
VR
MongoDB
运营
Python
MemCache
商业
硬件
电子
娱乐
设计
nginx
摄影
游戏
WordPress
HTTP
团建
数码电器
Docker
广告
广告
docker-compose启动nginx与php-fpm
composer install参数
php7 安装fileinfo扩展
preg_split — 通过一个正则表达式分隔字符串
php位值,解决 PHP 中 usort 在值相同时改变原始位置的问题
[PHP] inet_pton/inet_ntop IP地址转换函数
Composer的Packagist资源
[鸟哥]PHP_INT_MIN 和 -9223372036854775808
PHP 8.1
PHP json解析(json_decode)页面工具
opcache预加载
php $_SERVER中的SERVER_NAME 和HTTP_HOST的区别
mysql面试题
composer基本用法
Packagist / Composer 中国全量镜像
adodb手册
支持php7的性能采集扩展
PHP7 mcrypt替代方案
纯php实现DES以及TripleDES加密算法
两千行PHP学习笔记
联系我们
半月雨文化
可降解耗材网
蓝云环保
78免费小説
上海网站seo优化
工程造价
币安app官网下载
币安app官网下载
coinbase
成都贷款
seo查询
北京半月雨文化科技有限公司
.版权所有
京ICP备12026184号-3