位置: 编程技术 - 正文

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

  • 如何查询增值税申报表
  • 应税消费品是什么意思
  • 营改增后房地产公司税种及税率
  • 增值税专用发票可以开电子发票吗
  • 进口奶牛缴纳增值税
  • 新领的发票怎么导入uk开票系统
  • 幼儿园收取生活费通知
  • 从银行取现回单怎么取
  • 公司先注册实收资本后付账该如何做会计处理呢?
  • 多计费用以前年度损益调整
  • 营改增服务业税率
  • 出口退税如何开发票
  • 购买物品的专用会计科目
  • 上年多计提附加税调整了,今年怎么调整
  • 增值税专用发票电子版
  • 垫付按揭保证金怎么做账
  • 定金转为货款金额需要特别约定吗?
  • 进项构成比例是啥
  • 交易性金融资产公允价值变动计入
  • microsoft阻止应用启动
  • 如何让解决中世纪基督教世界黑暗
  • 本年利润余额的计算公式
  • 车辆拍卖怎么过户
  • qcwlicon.exe - qcwlicon是什么进程 有何作用
  • 商业折扣影响入账金额吗
  • php抓取
  • ajax调用php接口
  • 正则表达式在线生成器
  • 增值税发票洗烂怎么办
  • java实现电子发票
  • jetbrainsnews
  • 超市小票可以作为证据吗
  • 委托代销受托方会计分录
  • sql注入漏洞不会出现在哪个位置
  • 应收货款计入什么科目
  • discuz是啥
  • 将房产以股权形式出售
  • 有留抵税额可以注销吗
  • 劳务支出和应付职工薪酬
  • 专项资金如何进行管理
  • 出售无形资产净损益
  • 本年计算扣除限额的基数计算公式
  • 核定征收无收入
  • 广告收入计入哪个科目
  • 拆迁置换安置房
  • 失业保险稳岗返还计入什么科目
  • 暂估入库冲回与退回区别
  • 网络管理费用
  • 专用发票不抵扣要认证吗
  • 知识产权代理所代理
  • sql判断字段是否包含数字和字母
  • sql server怎么执行
  • sql合并字段
  • 如何用virtualbox安装linux
  • freebsd更新命令
  • mac更新系统版本
  • win7开始图标怎么变大点
  • aix操作命令
  • win10系统怎么把ie浏览器放到桌面
  • 如何使用升级助力器
  • centos新加硬盘
  • 怎么降到windows7
  • linux中内存是2GB,虚拟内存应该是多少
  • win10预览版21277下载
  • linux系统怎么启动软件
  • echarts怎么用
  • jquery 限制文件大小
  • 脚本添加crontab
  • jquery监听页面刷新
  • 健壮的什么
  • node搭建项目
  • Rotate object with mouse click or touch in Unity3D
  • javascript学习指南
  • jquery弹出窗口
  • 大学生活最后的日子
  • js脚本使用教程
  • python UNIX_TIMESTAMP时间处理方法分析
  • android自定义ui
  • 福建税务局网上办税
  • 大连地税局发票怎么开
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设