位置: 编程技术 - 正文

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

  • 特别关税是多少人民币
  • 所得税可以弥补几年
  • 递延所得税资产账务处理
  • 购进固定资产的安装费计入原值吗?
  • 小规模差额征税会计分录实例
  • 发票现金支付的做账增值税
  • 分销佣金分配
  • 工程施工的保障措施
  • 拆迁置换安置房
  • 收到银行退回的银行汇票多余款
  • 竞价服务费放在哪个会计科目?
  • 印花税实收资本纳税义务发生时间
  • 小规模与一般纳税人哪个好
  • 2016年的发票2019年还能开红字吗
  • 法院拍卖破产企业房产,税费问题
  • 背书出去的票据信息在哪里查询
  • 零税率发票如何抵扣
  • 研发费用的检测费指的是什么内容
  • 取得走逃失联企业的异常增值税发票如何处理
  • 企业有哪些资金结构
  • 工厂产品研发代码是多少
  • 增值税防伪税控系统采用什么技术保护涉税信息
  • 清空收藏夹里面的歌曲
  • 总资产报酬率怎么查
  • 赠送产品如何计入成本
  • 财政拨款收入的预算会计科目
  • 怎么取消电脑开机自动启动软件
  • win10好几个操作系统
  • 网速不稳定的解决方法
  • PHP:pg_result_seek()的用法_PostgreSQL函数
  • 托收账款属于什么会计科目
  • 财务新手要注意哪些事项
  • 绿萝怎么样养
  • thinkphp操作数据库
  • 一般纳税人差额征税申报表怎么填
  • vue 滚动条往下滑
  • 厂房维修费是制造费用还是管理费用
  • 小程序uniapp怎么用
  • 所得税申报表应怎么填
  • 图表库网站
  • hostnamectl命令
  • discuz怎么添加diy模块
  • ps闪退是什么原因win11
  • mongodb使用案例
  • Sqlite 常用函数 推荐
  • gin框架使用案例
  • 当月入账的进项税必须当月认证吗
  • 视同小规模纳税人是有?
  • 采购人员费用计入什么科目
  • 自行申报啥意思
  • 跨区域缴纳个税相关规定
  • 应收账款余额要包含应收票据吗
  • 公司对员工的罚款有什么标准
  • 收到返还工会经费账务处理
  • 普通发票作废要去税局吗
  • 什么是经营所得现金
  • 行程单如何验真伪
  • mysql rand整数
  • sql整型
  • sql比较数值大小
  • Vista 优化预读文件设置,提速开关机速度
  • win7装vmware
  • kb5003169安装失败
  • 使用标准用户帐号的方法
  • 清除win7更新缓存
  • el-menu-item
  • js自动输入
  • EXTJS FORM HIDDEN TEXTFIELD 赋值 使用value不好用的问题
  • bat批处理视频教程
  • unity项目怎么运行
  • javascript的面向对象
  • ogre 引擎
  • java密码强度检验工具
  • windows、linux
  • js实现二叉查找树
  • JavaScript基本语法与页面对象的应用
  • android:imeOptions属性
  • 四川省职称查询平台
  • 车船税完税凭证去哪里打印
  • 非营利组织认定条件
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设