位置: 编程技术 - 正文

PHP:pg_send_execute()的用法_PostgreSQL函数

编辑:rootadmin
pg_send_execute

推荐整理分享PHP:pg_send_execute()的用法_PostgreSQL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.1.0)

pg_send_execute — Sends a request to execute a prepared statement with given parameters, without waiting for the result(s).

说明 bool pg_send_execute ( resource $connection , string $stmtname , array $params )

Sends a request to execute a prepared statement with given parameters, without waiting for the result(s).

This is similar to pg_send_query_params(), but the command to be executed is specified by naming a previously-prepared statement, instead of giving a query string. The function&#;s parameters are handled identically to pg_execute(). Like pg_execute(), it will not work on pre-7.4 versions of PostgreSQL.

参数

connection PHP:pg_send_execute()的用法_PostgreSQL函数

PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().

stmtname

The name of the prepared statement to execute. if "" is specified, then the unnamed statement is executed. The name must have been previously prepared using pg_prepare(), pg_send_prepare() or a PREPARE SQL command.

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.

返回值

Returns TRUE on success, FALSE on failure. Use pg_get_result() to determine the query result.

范例

Example #1 Using pg_send_execute()

<?php$dbconn=pg_connect("dbname=publisher")ordie("Couldnotconnect");//Prepareaqueryforexecutionif(!pg_connection_busy($dbconn)){pg_send_prepare($dbconn,"my_query",'SELECT*FROMshopsWHEREname=$1');$res1=pg_get_result($dbconn);}//Executethepreparedquery.Notethatitisnotnecessarytoescape//thestring"Joe'sWidgets"inanywayif(!pg_connection_busy($dbconn)){pg_send_execute($dbconn,"my_query",array("Joe'sWidgets"));$res2=pg_get_result($dbconn);}//Executethesamepreparedquery,thistimewithadifferentparameterif(!pg_connection_busy($dbconn)){pg_send_execute($dbconn,"my_query",array("ClothesClothesClothes"));$res3=pg_get_result($dbconn);}?>

参见

pg_prepare() - Submits a request to create a prepared statement with the given parameters, and waits for completion. pg_send_prepare() - Sends a request to create a prepared statement with the given parameters, without waiting for completion. pg_execute() - Sends a request to execute a prepared statement with given parameters, and waits for the result.

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_result_status()的用法_PostgreSQL函数 pg_result_status(PHP4=4.2.0,PHP5)pg_result_status获得查询结果的状态说明intpg_result_status(resource$result)pg_result_status()返回该查询结果资源的状态。可能的返回值有PGSQ

PHP:pg_result_seek()的用法_PostgreSQL函数 pg_result_seek(PHP4=4.3.0,PHP5)pg_result_seek在结果资源中设定内部行偏移量说明arraypg_result_seek(resource$result,int$offset)pg_result_seek()在结果资源中设定内部行偏移量

标签: PHP:pg_send_execute()的用法_PostgreSQL函数

本文链接地址:https://www.jiuchutong.com/biancheng/281448.html 转载请保留说明!

上一篇:PHP:pg_send_prepare()的用法_PostgreSQL函数

下一篇:PHP:pg_select()的用法_PostgreSQL函数

  • 计提维保费
  • 企业收到退税款怎么处理
  • 购买二手车还需要交购置税吗
  • 什么情况下进项税额需要转出
  • 收付实现制有应收应付吗
  • 一季度季初从业人数
  • 增值税专用发票和普通发票的区别
  • 设备使用率怎么计算公式
  • 价外费用纳税义务发生时间
  • 未分配利润如何使用投入生产
  • 进口货物付款计入哪个科目?
  • 不是企业性质的民办学校要交什么税
  • 一般纳税人没有开票要交税吗
  • 进项和销项不符的税务处理
  • 技术服务发票税率 5% 小规模
  • 案例分析:如何缓解幼儿在幼儿园的焦虑情绪
  • 企业所得税怎么征收几个点
  • 有未分配利润就有盈余返还吗?
  • 应付政府补贴款名词解释
  • 代发保险款收入
  • 自然人独资企业交什么税
  • 技术合同的计税依据包括研究开发经费
  • 简单介绍linux
  • 交了预付款后,一方违约怎么处理
  • 商业承兑汇票如何签收
  • 换购商品分录怎么做
  • PHP:stream_get_filters()的用法_Stream函数
  • PHP:pg_execute()的用法_PostgreSQL函数
  • 苹果发布macOS13.3预览版
  • 技术转让费会计处理
  • uniapp传值
  • 企业所得税核定征收方法
  • 支付税务罚款
  • 一维卷积padding
  • 微信小程序授权管理在哪里
  • thinkphp6多表关联查询
  • 固定资产到期日
  • 出差补贴应该怎么入账
  • 销售自用的小汽车赚钱吗
  • 物业公司都有什么
  • 销售包装什么意思
  • 织梦cms为什么不维护了
  • 房地产企业样板间装修费账务处理
  • 公司借个人借款协议书范本图片
  • 合并报表长投和股本抵消后资产负债表怎么处理
  • 一个分组名称
  • sql server s
  • 武汉营业执照注销流程
  • 异地预缴的企业所得税
  • 流动资产属于经营资产还是得经营资产
  • 超市购销和联营哪个好
  • 冲减当期利润
  • 进项抵扣怎么操作
  • 科研专用费是什么
  • 只有销项没有进项怎么交税
  • 预付账款发票到哪里查
  • 待处理财产损溢借贷反向
  • 回购股票会导致所有者权益减少吗
  • 银行存款明细账借方代表什么
  • windows自带截图保存在哪里
  • win2008r2下载
  • win帮助系统在哪里
  • centos直接进入命令行
  • 联想lenovo thinkpad c13 yoga
  • windows一键隐藏桌面图标
  • linux cvf
  • win10系统锁屏广告怎么取消
  • tab栏切换案例
  • opengl数据类型
  • javascript全选反选
  • jquery简单例子
  • wind安装
  • linux shell脚本运行程序
  • yarn功能
  • 详解各种汽油一吨等于多少升
  • javascript基础编程
  • 税务局网上申请开票
  • 出口退税全流程
  • 中国地税发展现状
  • 国税局官网查询平台
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设