位置: 编程技术 - 正文

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

  • 收到政府的补贴收入现金流量表填哪里
  • 社保怎么进行账单查询
  • 分公司企业所得税政策
  • 服务费的增值税怎么算
  • 以前年度损益调整属于哪类科目
  • 没有收入的小规模纳税人可以无票入费用吗?
  • 弃置费用调整
  • 税务记账保存多少年纳税人转小规模
  • 收付转凭证如何排序装订
  • 研发费用加计扣除留存备查资料
  • 临时工工资作为人员成本如何做账
  • 一般纳税人申报表填写顺序
  • 子公司的注册资金需要母公司股东出吗?
  • 垃圾清运属于什么大类
  • 收到的劳务费发票可以抵扣吗
  • 总资产净利率与权益乘数的关系
  • 产生的投资收益怎么算
  • 银行与银行之间转账会计摘要
  • windows 11 正式
  • deepin咋样
  • 商会收到的会费要交企业所得税
  • 修改apache的http服务端口为8080
  • 如何在局域网内发布网页
  • 不动产增值税怎么算
  • 增值税专用发票查询系统官方网站
  • php抓取
  • 克洛格森林大克洛格
  • php使用redis缓存技术
  • 公司购买土地建厂房怎么入账
  • 前端 原生
  • background-size 之 背景图的尺寸设置
  • javaweb购物
  • html零基础入门教程
  • IDEA 2022专业版创建Java Web项目(保姆式小白讲义,强烈建议入手!)
  • 前端 大前端
  • 实发工资知道如何发放吗
  • 建筑业的账务处理方法
  • 财政零余额账户是什么
  • sqlserver2005安装步骤教程
  • 增值税哪些行业不能抵扣
  • 没有数字的公章有效吗
  • 公司注册流程百度百科
  • 网上申请发票要钱吗
  • 企业利润分配的内容
  • 报税残疾人保障费怎么算
  • 报废车补贴政策2023
  • 城市维护建设税怎么算
  • 用友t6操作流程
  • 税种的分类方法包括
  • 成本法长期股权投资初始成本确认
  • 首次购买金税盘及服务费的账务处理
  • 期末余额和期初余额
  • 企业研发费用怎么证明
  • 滴滴普票可以计算抵扣吗
  • 所得税会计凭证包括哪些
  • 什么叫自主研发
  • 以前年度损益调整怎么做账
  • 计提盈余公积比例
  • 在SQL Server中使用存储过程的优点包括
  • Linux下安装mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz
  • mysql使用命令
  • 远程登陆服务器命令
  • win10 自带
  • win10企业版20h2和1909
  • win10 ex4
  • Win10最新版下载天翼云盘
  • js让按钮不能点击
  • perl scripts
  • android集成chromiumview
  • ajax成功不走success
  • unity2019图集
  • ubuntu快捷键大全
  • python保存文件到指定文件夹
  • javascript编程技术
  • js 上传
  • android_sqlite开发入门
  • 湖北国税办税人是谁
  • 民办非企业税务登记流程
  • 地方税务局分局局长级别
  • 拆迁户契税减免政策有时间限制
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设