位置: 编程技术 - 正文

PHP:pg_escape_identifier()的用法_PostgreSQL函数

编辑:rootadmin
pg_escape_identifier

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

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

(PHP 5 >= 5.4.4)

pg_escape_identifier — Escape a identifier for insertion into a text field

说明 string pg_escape_identifier ([ resource $connection ], string $data )

pg_escape_identifier() escapes a identifier (e.g. table, field names) for quering the database. It returns an escaped identifier string for PostgreSQL server. pg_escape_identifier() adds double quotes before and after data. Users should not add double quotes. Use of this function is recommended for identifier parameters in query. For SQL literals (i.e. parameters except bytea), pg_escape_literal() or pg_escape_string() muse be used. For bytea type fields, pg_escape_bytea() must be used instead.

Note:

This function has internal escape code and can also be used with PostgreSQL 8.4 or less.

参数 PHP:pg_escape_identifier()的用法_PostgreSQL函数

connection

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().

data

A string containing text to be escaped.

返回值

A string containing the escaped data.

范例

Example #1 pg_escape_identifier() example

<?php//Connecttothedatabase$dbconn=pg_connect('dbname=foo');//Escapethetablenamedata$escaped=pg_escape_identifier($table_name);//Selectrowsfrom$table_namepg_query("SELECT*FROM{$escaped};");?>

参见

pg_escape_literal() - Escape a literal for insertion into a text field pg_escape_bytea() - 转义 bytea 类型的二进制数据 pg_escape_string() - 转义 text/char 类型的字符串

PHP:pg_copy_to()的用法_PostgreSQL函数 pg_copy_to(PHP4=4.2.0,PHP5)pg_copy_to将一个表拷贝到数组中说明arraypg_copy_to(resource$connection,string$table_name[,string$delimiter[,string$null_as]])pg_copy_to()将一个表拷贝到数

PHP:pg_copy_from()的用法_PostgreSQL函数 pg_copy_from(PHP4=4.2.0,PHP5)pg_copy_from根据数组将记录插入表中说明boolpg_copy_from(resource$connection,string$table_name,array$rows[,string$delimiter[,string$null_as]])pg_copy_from()将

PHP:pg_consume_input()的用法_PostgreSQL函数 pg_consume_input(PHP5=5.6.0)pg_consume_inputReadsinputontheconnection说明boolpg_consume_input(resource$connection)pg_consume_input()consumesanyinputwaitingtobereadfromthedatabaseserver.参数connect

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

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

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

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

  • 发票丢失的税务处罚
  • 小规模纳税人建筑工程增值税税率
  • 开票名称开错了
  • 两地拿工资怎么扣个税
  • 进项税额已认证未抵扣会计分录
  • 服务费做成本分录
  • 合作社收到补贴款如何入账
  • 计提企业年度所得税
  • 旅行社开哪里比较好
  • 第一季度盈利第二季度亏损全年盈利
  • 去年税收滞纳金是个人缴的,用做账嘛
  • 金蝶软件开发服务费入什么科目?
  • 营改增行业注释
  • 深圳制造业税收
  • 空调折旧年限的最新规定2018
  • 小微企业增值税税率
  • 外币折算差额计入什么科目
  • 退回工资能退个税吗
  • 资产负债表资产总额为负数
  • 投资类公司增资
  • 以租代购如何做账
  • 如何修改mac系统密码
  • win11怎么提高运行内存
  • 研发费用没有发票可以加计扣除吗
  • 简单制作教程
  • 建筑业预缴企业所得税是分季预缴按年抵减吗
  • win7旗舰版系统怎么样
  • ppap是什么意思中文
  • 若依官网
  • 搜索神器官网
  • AttributeError: ‘bytes‘ object has no attribute ‘encode‘异常解决方案
  • 垃圾清运费属于什么服务
  • 建筑企业安装水电过程中很难发现的潜在问题
  • tsop封装
  • 零申报的申报表怎么填
  • 辞退补偿金计算
  • php decbin
  • DEDECMS php.ini register_globals must is Off!如何解决
  • c语言中的typedef struct
  • 个人汽车保险费可以放在公司报销吗
  • 残疾人保障金汇算清缴的处理
  • 小规模加工企业加工费会计分录
  • mysql的环境配置
  • 先给发票后付款做账
  • 普通发票的税费计入应交税费吗
  • 小规模纳税人开专票需要交税吗
  • 零申报是怎么回事
  • 已经认证抵扣的发票会计分录
  • 长期待摊费用摊销会计分录
  • 长期待摊销费用属于
  • 坏账准备贷方余额期末如何处理
  • 公司费用怎么做账
  • 小企业如何进行内部创新
  • 驾校挂靠车辆账务处理是?
  • 现金日记账年结需要另起一页吗
  • 借款合同的印花税计税依据
  • 固定资产处置有净值怎么处理
  • 通过SQL绘制杨辉三角的实现方法介绍
  • linux操作系统基本操作
  • 深度解析桂附地黄丸
  • 系统停止工作
  • Windows Vista和Windows 7对比
  • centos永久修改主机名
  • swstrtr.exe - swstrtr是什么进程
  • win8怎么共享电脑
  • 在centos上安装pycharm
  • 在linux系统中
  • w10文件预览
  • js三种绑定方式
  • tf-idf例题
  • python的数据
  • python里面有什么
  • 置顶pyq会被自己屏蔽的人看到吗
  • ubuntu修改默认桌面环境
  • android 入门教程
  • python有没有二维数组
  • android 全局viewmodel
  • 税务局上班吗今天
  • 增值税电子普通发票需要盖章吗
  • 精准扶贫的实践与探索经验
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设