位置: 编程技术 - 正文

PHP:pg_send_query_params()的用法_PostgreSQL函数

编辑:rootadmin
pg_send_query_params

推荐整理分享PHP:pg_send_query_params()的用法_PostgreSQL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.1.0)

pg_send_query_params — Submits a command and separate parameters to the server without waiting for the result(s).

说明 bool pg_send_query_params ( resource $connection , string $query , array $params )

Submits a command and separate parameters to the server without waiting for the result(s).

This is equivalent to pg_send_query() except that query parameters can be specified separately from the query string. The function&#;s parameters are handled identically to pg_query_params(). Like pg_query_params(), it will not work on pre-7.4 PostgreSQL connections, and it allows only one command in the query string.

参数

connection

PostgreSQL database connection resource.

query PHP:pg_send_query_params()的用法_PostgreSQL函数

The parameterized SQL statement. Must contain only a single statement. (multiple statements separated by semi-colons are not allowed.) If any parameters are used, they are referred to as $1, $2, etc.

params

An array of parameter values to substitute for the $1, $2, etc. placeholders in the original prepared query string. The number of elements in the array must match the number of placeholders.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

Use pg_get_result() to determine the query result.

范例

Example #1 Using pg_send_query_params()

<?php$dbconn=pg_connect("dbname=publisher")ordie("Couldnotconnect");//Usingparameters.Notethatitisnotnecessarytoquoteorescape//theparameter.pg_send_query_params($dbconn,'selectcount(*)fromauthorswherecity=$1',array('Perth'));//Compareagainstbasicpg_send_queryusage$str=pg_escape_string('Perth');pg_send_query($dbconn,"selectcount(*)fromauthorswherecity='${str}'");?>

参见

pg_send_query() - 发送异步查询

PHP:pg_send_prepare()的用法_PostgreSQL函数 pg_send_prepare(PHP5=5.1.0)pg_send_prepareSendsarequesttocreateapreparedstatementwiththegivenparameters,withoutwaitingforcompletion.说明boolpg_send_prepare(resource$connection,string$stmtname,string

PHP:pg_send_execute()的用法_PostgreSQL函数 pg_send_execute(PHP5=5.1.0)pg_send_executeSendsarequesttoexecuteapreparedstatementwithgivenparameters,withoutwaitingfortheresult(s).说明boolpg_send_execute(resource$connection,string$stmtname,array$

PHP:pg_select()的用法_PostgreSQL函数 pg_select(PHP4=4.3.0,PHP5)pg_select选择记录说明mixedpg_select(resource$connection,string$table_name,array$assoc_array[,int$options=PGSQL_DML_EXEC])pg_select()根据assoc_array数组中的field=v

标签: PHP:pg_send_query_params()的用法_PostgreSQL函数

本文链接地址:https://www.jiuchutong.com/biancheng/281446.html 转载请保留说明!

上一篇:PHP:pg_send_query()的用法_PostgreSQL函数

下一篇:PHP:pg_send_prepare()的用法_PostgreSQL函数

  • 上月少计提的个税本月怎么调整
  • 新公司需要去当地街道报备劳动关系证明吗
  • 财务软件和报税软件区别
  • 预缴增值税的账务
  • 出口关税的计算基数
  • 飞机票退票费如何记账
  • 开出商业承兑汇票到期会计分录
  • 建筑工程查帐征收税
  • 企业长期贷款具备什么条件
  • 中小企业存货内部控制存在的问题以公司为例
  • 代员工缴纳的个税放什么科目
  • 按价格从价缴纳增值税
  • 超市销售购物卡怎么开票
  • 营利性养老机构需要缴纳哪些税
  • 委外加工半成品入库的会计分录
  • 自查增值税补缴怎么处理
  • 小规模发票什么样子
  • 记账凭证是否要记账
  • 电费收入印花税如何计算
  • 内账的成本结转含税还是不含税?
  • 定额手撕发票怎么买
  • 库存商品入库的会计科目
  • win8电脑一键还原怎么操作
  • 房地产开发企业资质证书
  • 管理费用处理方法包括
  • 调整会计分录是什么
  • 减税降费是针对个人还是企业
  • php中的类
  • shwiconem.exe - shwiconem是什么进程 有什么用
  • 领用自产库存商品
  • 若依框架前后端一体化设计管理系统
  • 未摊销完的房租转哪个科目
  • php操作oracle
  • js实现dialog
  • 如何判断自己风寒还是风热
  • [深度学习] 基于切片辅助超推理库SAHI优化小目标识别
  • cvpr2020目标跟踪
  • Laravel 5.3 学习笔记之 配置
  • 材料合理损耗会计处理
  • 如何一次性删除微信账单记录
  • 微信收款计入哪个科目
  • 研发费用加计扣除新税收政策
  • php sleep()
  • 计提工资后面附什么
  • 已抵扣的发票冲红会计分录
  • 新的会计制度
  • 增值税发票丢失怎么补开
  • sqlserver存储过程if语句
  • 在建工程领用自产应税消费品
  • sqlserver分页查询越到最后越慢
  • 金税四期能监控到公户吗
  • 结转成本注意事项
  • 小规模纳税人报税
  • 资本公积和盈余公积是什么意思
  • 红字申请单如何打印出来
  • 商业承兑汇票怎么接收
  • 公司注销应收账款如何转让给第三方
  • 工会经费的开支必须取得发票么
  • 高新技术产品收入归集依据
  • 对公收到几毛测试费怎么做账
  • 营业成本占营业收入的比重过高
  • 对公账户可以取钱出来吗
  • 母子公司可以合并吗
  • 高新技术企业认定管理办法
  • xp系统内存不能为read的解决方法
  • linux中dhcp
  • 进去界面黑屏
  • macos 复制快捷键
  • win8电脑怎么设置定时开机
  • lookAtCamera
  • ubuntu搭建android开发环境
  • javascript概述及作用
  • javascript如何
  • unity移动脚本代码
  • 使用java
  • Javascript字符串出现次数
  • android反编译smali
  • 2020年上海税务跨区迁移很麻烦吗
  • 车辆缴纳购置税多少钱
  • 期初库存和期末库存是什么意思
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设