位置: 编程技术 - 正文

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函数

  • 如何查企业是一级企业
  • 营业净利率和总资产净利率的区别
  • 进出口企业需要具备的资质
  • 会计哪些账本需要保存
  • 代收款需要开票吗
  • 收到其他与筹资活动有关的现金计算公式
  • 三栏式明细账科目编号怎么填
  • 贴现利息支付方式
  • 财政补贴金额
  • 存货盘盈属于什么活动
  • 存货残料收入账务处理?
  • 土地流转承包费拖欠
  • 律师事务所日常管理松懈混乱整改措施
  • 企业支付劳务费到底需要发票吗
  • 2018年业务宣传费与广告费税前扣除标准及依据
  • 网上认证服务费可以全额抵扣吗
  • 中国公司可以给境外公司开发票吗
  • 对方公司破产债务怎么办
  • 进项税额转出的
  • 企业公益救济性工作总结
  • 公户没有开票进账了可以吗
  • 稽查查补税款怎么计算企业所得税
  • 季度不超过30万免税分录
  • 在售房地产土地使用税如何计算?
  • 进出口免抵退税操作
  • 企业收到留抵退税宣传报道
  • 运输公司转包业务怎么开票
  • macbook无法调节音量
  • PHP:mb_ereg_replace()的用法_mbstring函数
  • 鸿蒙怎么装app
  • 企业所得税预缴税率是多少
  • 土地使用税滞纳金不得超过
  • 油猴脚本插件官网
  • 进项票留底怎么做分录
  • 利用php实现一个数组
  • 负数发票怎么做账务处理
  • php正则匹配时间
  • chkdsk.exe/f命令
  • vue环境搭建的几种方法
  • 处置固定资产清理费用影响利润吗
  • python idle有什么用
  • 税额和税款是一回事吗
  • 海关缴款书上完税价格含增值税吗
  • 车辆购置税能否融资租赁
  • 资金账簿印花税按年还是按次
  • 增值税进项发票不够抵扣怎么办
  • 商品流通企业应交那些税费
  • 存货价值的计算公式
  • 留存收益转增资本公积
  • 经营范围中没有这个项目开票后果
  • 税控盘抄报税逾期怎么办
  • 库存和结存
  • 研发费用属于哪类会计科目
  • 已认证专票发现地址为错误
  • 会计凭证装订的注意事项
  • 新会计准则关于贷款损失准备
  • 实收资本应补缴哪些税
  • 批量更新数据库最多多少条
  • 深入理解mysql主从原理32讲
  • linux lxd
  • fedora安装apt
  • freebsd的软件管理工具ports详解
  • windows8.
  • win7全局搜索
  • win10如何关闭windows安全中心图标
  • 在Linux操作系统中哪些命令可以正确关闭系统防火墙
  • 获取windows的最新信息
  • 微软发布Win10更新
  • 列举linux常用的几个命令
  • uisrollview
  • 编程python怎么学
  • redhat linux8
  • unity里面如何删除一个项目
  • vue router使用query和params传参的使用和区别
  • js如何打印服务器图片
  • JavaScript Length 属性的总结
  • 关于怀孕在线咨询
  • 企业不做审计会有什么后果?
  • 公司账户注销了,是不是网银也注销了
  • 企业所得税年报什么时候开始申报
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设