位置: 编程技术 - 正文

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

  • 外贸企业出口货物
  • 增值税交多少怎么查询
  • 代开专票上的税额比电子缴款凭证上的税额少怎么调整
  • 年审和税审的区别是什么
  • 如何开增值税专用发票视频
  • 小规模国税怎么报税
  • 现金折让怎么做会计分录
  • 汇款后又退回来是什么原因
  • 不动产入股需要交哪些税
  • 摊销土地使用权和专利权会计分录怎么写
  • 年终奖和工资个人所得税计算器
  • 工资未发放是否可以仲裁
  • 怎么看公司行不行
  • 收以前年度租金
  • 往来账的作用
  • 附加税的税率表
  • 增值税专用发票使用规定 最新
  • 资本公积转增实收资本所有者权益会变吗
  • 红字发票怎么填申报表表二
  • 开启网络共享后怎么使用
  • 资产负债率如何评价
  • 财务管理终值和现值
  • 职工福利费的构成
  • 小规模公司减免的增值税怎么做账
  • 差额发票可以开1个点吗?
  • macbookprofacetime
  • 购货公司丢失发货怎么办
  • qqlogin.exe是什么进程 qqlogin.exe应用程序错误解决办法
  • ros call
  • win7纯净版系统激活
  • 可变现净值高于成本计入当期损益吗
  • php能开发微信小程序吗
  • 转让居民企业的股权所得交企业所得税吗
  • 财政总预算会计分为几级
  • thinkphp教程
  • php中数组的概念
  • 浏览器同源策略限制
  • php 字符串处理函数
  • 最好用的电脑强力卸载软件
  • 赠品视同销售会计分录要如何编制?
  • 筹建期间发生的收入
  • 本月的进项票可以抵扣上月税款吗?
  • 新企业会计准则
  • 财产保险费用会增加吗
  • 原材料退库的会计分录
  • db2 deadlock
  • mysql基本命令大全
  • 国税办税人员怎么解绑
  • 直接人工费用属于产品成本吗
  • 个体户需要税务报道不
  • 小规模费用发票可以抵扣增值税吗
  • 跨月开票的业务怎么做
  • 应付职工薪酬包括辞退福利吗
  • 固定资产损失计入什么科目
  • mysql kill -9
  • ghost装win7无法启动
  • 电脑系统文件受损
  • Windows Server 2008如何改动服务器名称与管理员密码?
  • linux系统的介绍
  • 进程rundll32停止工作
  • linux删除用户组和用户
  • mac我的所有文件 删除
  • windows7怎么卸载
  • win7e盘不见了怎么恢复
  • win8如何使用
  • .android
  • cocos设置中文
  • real interval
  • 加密批处理代码
  • javascript的描述
  • js 图像
  • [置顶]星陨计划
  • 谷歌邮箱
  • viewpager2 bug
  • jquery-validate
  • 杭州二套房契税新政策2023年
  • 国税税控开票系统
  • 新领取的发票怎么读入金税盘
  • 税务变更表
  • 广东省电子税务局申报缴税操作指引
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设