位置: 编程技术 - 正文

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

  • 消费税的计算方法有哪三种
  • 缴纳增值税的会计科目
  • etc发票可以抵扣进项税吗
  • 股权转让给个人和公司的区别
  • 对方开给我的专票遗失了,让我上传发票
  • 合同取得成本如何结转
  • 增值税交错了退税怎么退
  • 政府补贴在企业怎么申请
  • 医院收费单能当凭证用吗
  • 应交增值税和应交税费
  • 外资企业订单外放,员工待岗合法吗
  • 企业固定资产折旧当月增加当月计提吗
  • 出口样品账务处理
  • 外经证缴纳个税流程
  • 生产经营期间固定资产报废清理的净损失
  • 分月计提利息会计分录
  • 办公楼贷款比例
  • 使用人民币进行石油贸易结算
  • 出口退税对企业利润的影响
  • 红字发票信息表是销方还是购方开
  • 结转固定资产净收益8万元
  • win10禁止使用网络
  • 建筑工程劳务费占比例
  • win11如何修改任务栏颜色
  • macos catalina安装很慢
  • 查看电脑开机时间记录win10
  • PHP mysql_result()函数使用方法
  • 会计中在建工程与建筑安装工程的区别
  • 电商新公司值得去吗
  • 哪些资产损失可以转回
  • 政府会计制度固定资产折旧哪个月开始计提
  • 若依框架好用吗
  • 舍夫沙万的蓝色是什么意思
  • 固定资产当月出售还要计提折旧吗
  • 固定资产清查盘点报告模板
  • 已经开票但是未达到收入确认条件的怎么进行账务处理
  • 土地款什么时候进在建工程
  • 基于javaweb的图书馆管理系统
  • 个体户个税征收标准
  • 劳务派遣差额征税的账务处理实例
  • 滴滴打车的发票是什么样子
  • 年数总和法怎么算年折旧额
  • 高速费发票可以抵税吗
  • sql游标用法
  • 小规模纳税人可以开票吗?
  • 按利润总额的10%怎么算
  • 汇兑损益在哪个表
  • 普通发票可以抵扣吗
  • 持有至到期投资账务处理
  • 装修费可以一次性入账吗
  • 账本还用贴印花税票吗
  • 生产车间的保险有哪些
  • 印花税属于什么科目
  • kb4022719安装失败
  • 班班通一直正在启动什么原因
  • CentOS救援模式实验笔记详解
  • Win7系统重装后鼠标键盘不能用怎么办
  • linux系统中命令什么大小写
  • msmpeng.exe是什么程序
  • windows10秋季更新
  • mcshield.exe是什么进程
  • win7 win10 win8
  • compress与uncompress参数使用
  • 找不到config/index taro
  • linux根目录和主目录
  • win7系统出现COMSurrogate
  • win10系统怎么更改开机密码
  • Windows下的写字板功能是
  • js类继承的几种方式
  • javascript Event对象详解及使用示例
  • node.js常用命令
  • js中的函数怎么使用
  • jquery插件是干什么的
  • 一种新的运算符号类型的题
  • 保险是不是跟车走
  • 税务系统更新不能开发票
  • 我是一般纳税人对方给我开的普票
  • 税务师事务所行政登记表怎么办理
  • 盼之代售怎么下载
  • 石脑油的消费税是多少
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设