位置: 编程技术 - 正文

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,季末是0怎么填
  • 跨月专用发票怎么冲销
  • 小规模纳税人每季度报税清盘
  • 已经退税的增票怎么做账
  • 企业所得税预缴计算方法
  • 固定资产按月折旧了,还能一次折旧么
  • 物流运输途中损坏怎么办
  • 工人受伤医药费计入什么科目
  • 原来已入帐的款现在收回帐务处理?
  • 企业名称变更后原名称还能使用吗
  • 抄税和上报汇总一样吗
  • 企业支付的工伤费用怎么入账
  • 全年一次性奖金个税计算
  • 缴纳的住房公积金计入什么科目
  • 如何申报固定资产投资
  • 发票已勾选未确认
  • 不能抵扣的福利发票要勾选吗为什么
  • 银行承兑汇票贴现会计分录
  • 公司账上没车可以报车辆保险吗
  • 红冲发票后 库存怎么处理
  • 展厅设计费用计什么科目
  • 办公室电话费
  • mac文件怎么用
  • 个体户生产经营所得怎么报税
  • 资产负债表中资产等于什么
  • 应交增值税与预交增值税报告如何披露
  • 个体户个人所得税免征额是多少
  • PHP:get_meta_tags()的用法_url函数
  • php可以做什么脚本
  • 代缴个税的分录
  • php中construct
  • PHP:pcntl_wstopsig()的用法_PCNTL函数
  • php7数据库操作
  • php验证码显示不出来
  • 费用报销单怎么划线
  • 税务局罚款计入哪个会计科目
  • 投喂小鸟
  • python字符串多行
  • 预收账款是否需入账
  • 工会经费按工资总额的
  • 日主题ripro v8.1破解版(修复缓存器功能)
  • 图文详解管道支架制作安装标准
  • 深入了解工作优势怎么回答
  • python文件可分为哪几类
  • 去年的滞纳金没有入账怎么处理
  • 个税申报方式是什么意思
  • 一般纳税人接受捐赠的固定资产,捐赠方提供了有关凭证
  • 购买产品样品计入什么科目
  • 加计抵扣进项税分录
  • 利润分配的借方表示增加还是减少
  • sql server 2000安装包
  • solaris命令
  • 2t硬盘如何分区最合理
  • win7共享在哪
  • centos中如何安装软件
  • 系统装在从盘
  • win11连接win7共享打印机
  • linux管理员权限命令
  • win8开机自启动在哪里设置
  • linux %1
  • 置顶如何设置固定顺序
  • android快捷键设置
  • (cocs2dx)二、 利用Eclipse编译apk应用
  • 调度器在操作系统中的作用
  • CSSvista可同时在IE和Fifrefox调试的CSS编辑提供下载
  • Nodejs+angularjs结合multiparty实现多图片上传的示例代码
  • js页面点击怎么随机生成图片
  • android缓存机制
  • 收到红字信息表不能直接开具
  • 常州税务局举报网站
  • 初始密码是几位数
  • 机动车发票怎样开
  • 遵从和尊重
  • 国,地税纳税申报表是什么
  • 当月专票作废流程
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设