位置: 编程技术 - 正文

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

  • 减免税款最终转到哪个科目?
  • 个人出售二手房要交增值税吗
  • 股权转让印花税税率
  • 累计净值包含业务收入吗
  • 企业员工的高铁票进项税如何申报
  • 专用发票抵扣联丢失还能抵扣吗
  • 应收账款占用资金的应计利息公式
  • 企业的车辆因违法停放
  • 发放货物给员工 赠送
  • 工程项目劳务分包合同范本
  • 收到外商投入资金
  • 新会计准则开办费装修费计入什么科目
  • 收到股东增资款账务处理怎么做账
  • 计提房屋折旧会计分录
  • 个人所得税0申报逾期
  • 农户贷款免征增值税吗?
  • 存货暂估入账的分录
  • 外购软件可以加计扣除吗
  • 业务招待费进项税额转出
  • 外籍人士可以回国吗
  • 送积分怎么做账
  • 怎么关闭win11安装软件提示
  • 设备拆装费计入什么科目
  • 入账价值是啥
  • 基本户是否可以冻结
  • php timestamp
  • 部门活动经费怎么算
  • 科尼西卡神庙在哪里
  • php 调试工具
  • 46 个非常有用的成语
  • 房地产企业增值税扣除土地成本
  • 库存现金总分类账怎么登记
  • 短期贷款利息支出计算
  • gpt-3的功能
  • vue的mvvm模型
  • thinkphp d方法
  • php环境搭建apache
  • 民间非营利组织会计制度
  • 租赁公司车转到私人名下
  • 一般纳税人可以转小规模纳税人吗
  • 工会经费怎么计算缴纳
  • 预收账款期末余额在借方还是贷方
  • 汇算清缴补缴所得税摘要怎么写的
  • 有限合伙企业成本费用抵扣
  • 收到发票怎么写摘要
  • 企业销售收入确认条件
  • 分配现金股利如何做会计分录
  • 海关被税没有发票
  • 京东预付是什么意思
  • 低值易耗品属于周转材料吗
  • 法人存入公户的钱摘要
  • 企业缴纳社保费包括企业部分和个人部分
  • 购入固定资产预计净残值
  • 领用包装物的会计处理
  • 销售佣金的会计科目
  • sap批量导入
  • 解析关于sql语句的实现
  • mysql设置唯一值
  • mysql索引用法
  • windows sfc命令
  • win8系统连接vpn失败提示错误代码807的解决方法
  • windows域环境搭建
  • win10系统资源
  • targz和zip
  • centos6.5双网卡绑定
  • windows移动中心英文怎么写
  • 如何安装QQ软件
  • win7怎么查看
  • 软件生态圈是什意思
  • win8怎么禁止弹窗
  • win10教育版登录
  • javascript definitive guide
  • 如何修改apache端口号
  • python读取数据
  • 使用jquery实现的项目
  • script标签的defer和async
  • 残疾人个人所得税减免政策
  • 一般纳税人销售二手车增值税税率
  • 浙江省国税局地址
  • 湖南地方税务局网上办税大厅
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设