Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 在Postgres的行构造函数中,哪些字符是双引号_Postgresql_Double_Quoting - Fatal编程技术网

Postgresql 在Postgres的行构造函数中,哪些字符是双引号

Postgresql 在Postgres的行构造函数中,哪些字符是双引号,postgresql,double,quoting,Postgresql,Double,Quoting,创建行构造函数时,如果该值包含某些字符,Postgres将用双引号将其括起来 select row('test')::text -> test select row('test,')::text -> "test," select row('te(st')::text -> "te(st" 到目前为止,我发现文本中任意位置的以下字符将使文本成为双引号:空格,(“\ 是否有产生双引号的所有字符的列表?您必须阅读源代码,但我认为您已经获得了所有字符。在record类型的值的字符

创建行构造函数时,如果该值包含某些字符,Postgres将用双引号将其括起来

select row('test')::text  -> test
select row('test,')::text -> "test,"
select row('te(st')::text -> "te(st"
到目前为止,我发现文本中任意位置的以下字符将使文本成为双引号:空格,(“\


是否有产生双引号的所有字符的列表?

您必须阅读源代码,但我认为您已经获得了所有字符。在
record

类型的值的字符串表示中,具有特殊意义的字符列表也将强制引用。