位置: 编程技术 - 正文

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

  • 小规模超过30万计算
  • 个人买车交增值税吗
  • 实收资本印花税如何申报
  • 小规模开专票的条件
  • 增值税普通发票和普通发票的区别怎么交税
  • 办公室购买水果做会计分录
  • 科目汇总表的登记方法
  • 在分公司关闭过程中,资产损失怎么申报扣除
  • 罚款收入需要开票吗
  • 有限合伙合伙人要求
  • 个人应纳税所得额 税率
  • 普通发票需要做分录吗?
  • 企业购买救生棒合法吗
  • 建筑企业员工培训
  • 公司的差旅费
  • 增值税纳税申报表在哪里打印
  • 支票结算方式下用其他货币资金账户
  • 存货跌价准备转销账务处理
  • 金融机构可以采取什么措施
  • 公司股东和自然人的区别
  • 决算帐表不相符怎么处理
  • 存货监盘计划要求,在对存货盘点结果进行测试时
  • 模具维修费做什么费用
  • 劳务收入的会计分录
  • linux 部署
  • 电脑右下角弹出网页没有×怎么关闭
  • 在php中,字符串有哪些表示形式
  • 免施工许可证
  • 商品进销差价的作用
  • php方法重载
  • 分公司独立核算和非独立核算哪个好
  • php zmq
  • php floatval
  • 减资资产负债表怎么填
  • python opencv如何获取图片尺寸
  • python,array
  • 国家税务局监制的票还能用吗
  • 在mysql中子查询是
  • 代开运输发票是否会引起双重征税?
  • 股权转让主要交什么税费
  • 固定资产清理账户借方
  • 填写记账凭证的日期一般是会计人员填制记账凭证的
  • 个人工资税收怎么计算年收入
  • 企业营改增税率是多少
  • 出口退税进口退税吗
  • 半年净资产收益率
  • 建筑企业工程管理部职责
  • 总公司可以开发票给分公司吗
  • 在固定资产下的折旧年限
  • 哪些税费计入管理费用
  • 高新技术企业享受优惠时间
  • mysql在查询结果中查询
  • mysql解压版安装教程5.7.20
  • mysql默认8小时自动断开
  • ubuntu文本编辑器怎么打开
  • centos配置kdump
  • Linux系统调用函数
  • windows7报错
  • win10周年更新版是什么意思
  • macbookpro屏幕显示
  • win8系统映像
  • nddeagnt.exe - nddeagnt是什么进程 有什么用
  • pic是啥软件
  • js require()
  • cocos2d-x引擎
  • android 4.2
  • js确认框s弹出框确定和取消
  • android实现天气预报
  • 实用的批处理
  • react基础入门
  • iframe的使用和例子
  • js基础知识
  • scrollbottom用法
  • python如何运用
  • 四川国税发票真伪查询
  • 施工费税费
  • 青岛税税通怎么切换企业
  • 中国农村信用社手机银行下载app
  • 上海哪能玩
  • 农民专业合作社章程完整版
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设