pg_escape_string 转义字符串以供查询 &reftitle.description; stringpg_escape_string PgSql\Connectionconnection stringdata pg_escape_string 转义用于查询数据库的字符串。它返回不带引号的 PostgreSQL 格式的转义字符串。pg_escape_literal 是为 PostgreSQL 转义 SQL 参数的首选方法。addslashes 不得与 PostgreSQL 一起使用。如果列的类型是 bytea,则必须改用 pg_escape_byteapg_escape_identifier 必须用于转义标识符(例如表名、字段名) &reftitle.parameters; connection &pgsql.parameter.connection-with-unspecified-default; data 包含要转义的 string &reftitle.returnvalues; 包含转义数据的 string &reftitle.changelog; &Version; &Description; &pgsql.changelog.connection-object; &reftitle.examples; <function>pg_escape_string</function> 示例 ]]> &reftitle.seealso; pg_escape_bytea