位置: 编程技术 - 正文

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年第53号公告解读
  • 年中入职个税怎么预扣
  • 新购进的固定资产可以一次性抵扣
  • 往年度的工资做什么科目
  • 原料采购入库检测损耗的会计处理怎么做?
  • 视同销售收入计入会计利润中吗
  • 坏账准备递延所得税资产,不缴所得税
  • 押金拿不到怎么解决
  • win11进入黑屏
  • windows11怎么添加桌面图标
  • 认证未抵扣往哪里记
  • 什么时候不能计入开办费
  • 产品作为样品账务处理
  • 对增值税发票开具方面有何要求?
  • 电脑cn是什么意思
  • 购入工程物资用于建设厂房,购入后直接领用至工程项目
  • SchSvr.exe - SchSvr是什么进程 有什么作用
  • php生成php文件
  • php执行mysql语句的函数
  • php 生成缩略图
  • 实战到底究竟是什么意思啊
  • 固定资产科目的备抵科目
  • 自产货物进项税抵扣
  • 邀请客户参加会议
  • 织梦怎么改文字
  • 购买金税盘是全额抵扣吗
  • 企业投资收益要交增值税吗
  • 银行开户有几种账户
  • 个体户开电子发票怎么申请
  • 购买货物收到发票怎么做账小规模
  • 一般纳税人简易计税方法适用情形
  • 劳务派遣人员的档案会保存在用人单位吗
  • 固定资产盘亏如何做账务处理
  • 为员工保险取得的增值税抵扣
  • 职工福利基金提取流程
  • 坏账准备与应收账款的影响有哪些
  • 冲销预付账款后怎么做账
  • 跨年的费用怎么调整
  • 职工医保门诊一年报销多少钱
  • 小规模纳税人残保金减免政策
  • 工业企业应收账款减少原因分析
  • 企业投资人类型怎么选
  • Linux下MySQL 5.6.27 安装教程
  • windows 进程管理
  • linux系统文件在哪个目录
  • 服务器时间和电脑时间
  • 恢复已删除的聊天记录微信
  • dwm22.exe病毒
  • NDSTray.exe - NDSTray是什么进程 有什么用
  • 如何下载安装windows10
  • 防火墙ddos攻击防范
  • Linux系统如何创建目录
  • cocos2dx4.0教程
  • iframe 自适应宽度和高度
  • perl cgi
  • github比较火的项目
  • windows、linux
  • es6十大特性
  • nodejs微信公众号开发
  • python简要说明读取文件的一般流程
  • 手机sd卡满了怎么办
  • 收购发票怎么抵扣申报
  • 车船税可以异地补办吗
  • 契税减税、免税条件
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设