quote_literal ( text ) → text → text为给定字符串添加适当的引号并返回,使其可用作 SQL 语句字符串中的字符串字面量。内嵌的单引号和反斜杠会被适当地双写。注意,
quote_literal 在输入为 null 时返回 null;如果参数可能为 null,quote_nullable 通常更合适。另见例 41.1。为给定字符串添加适当的引号并返回,使其可用作 SQL 语句字符串中的字符串字面量。内嵌的单引号和反斜杠会被适当地双写。注意,quote_literal 在输入为 null 时返回 null;如果参数可能为 null,quote_nullable 通常更合适。另见例 41.1。
英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 19·选择有来源记录的版本
quote_literal 在输入为 null 时返回 null;如果参数可能为 null,quote_nullable 通常更合适。另见例 41.1。quote_literal ( text ) → text为给定字符串添加适当的引号并返回,使其可用作 SQL 语句字符串中的字符串字面量。内嵌的单引号和反斜杠会被适当地双写。注意,
quote_literal 在输入为 null 时返回 null;如果参数可能为 null,quote_nullable 通常更合适。另见例 41.1。quote_literal ( anyelement ) → text将给定值转换为文本,然后作为字面量加引号。内嵌的单引号和反斜杠会被适当地双写。
quote_literal ( text ) → text → text为给定字符串添加适当的引号并返回,使其可用作 SQL 语句字符串中的字符串字面量。内嵌的单引号和反斜杠会被适当地双写。注意,
quote_literal 在输入为 null 时返回 null;如果参数可能为 null,quote_nullable 通常更合适。另见例 41.1。quote_literal ( anyelement ) → text → text将给定值转换为文本,然后作为字面量加引号。内嵌的单引号和反斜杠会被适当地双写。
{"inputs":[{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"3f643437a797615acce4d0f79f15f5abaeac883301f9e5ff325acf9d0ec81709","version":"19rc2"},{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"c41f96aacf3f4a4c0681f9877ad1be19aeb8453574eaca06f90f4069b4f67a47","version":"19rc2"}],"release":"19rc2","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}center · PostgreSQL 19 · wiki-repair-20261023:fe9183fc044e66fc29715b4bc44ac4099b6c2411bd0261832e29ecfc9dad4b64
正文语言: zh-Hans · wiki-repair-20261023:fe9183fc044e66fc29715b4bc44ac4099b6c2411bd0261832e29ecfc9dad4b64