pg.ddx.io pgsql-docs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
[PATCH] Document nchar data type alias 1+ messages / 1 participants [nested] [flat]
* [PATCH] Document nchar data type alias @ 2024-05-05 00:15 Erik Wienhold <ewie@ewie.name> 0 siblings, 0 replies; 1+ messages in thread From: Erik Wienhold @ 2024-05-05 00:15 UTC (permalink / raw) Also mention that we support national character string constants. --- doc/src/sgml/datatype.sgml | 6 +++--- doc/src/sgml/syntax.sgml | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 6646820d6a..3063b7e2cb 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1234,9 +1234,9 @@ SELECT '52093.89'::money::numeric::float8; <para> The type name <type>varchar</type> is an alias for <type>character - varying</type>, while <type>bpchar</type> (with length specifier) and - <type>char</type> are aliases for <type>character</type>. The - <type>varchar</type> and <type>char</type> aliases are defined in the + varying</type>, while <type>bpchar</type> (with length specifier), + <type>nchar</type>, and <type>char</type> are aliases for <type>character</type>. + The <type>varchar</type> and <type>char</type> aliases are defined in the <acronym>SQL</acronym> standard; <type>bpchar</type> is a <productname>PostgreSQL</productname> extension. </para> diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 4dfbbd0862..6579b2908a 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -334,6 +334,13 @@ SELECT 'foo' 'bar'; by <acronym>SQL</acronym>; <productname>PostgreSQL</productname> is following the standard.) </para> + + <para> + <productname>PostgreSQL</productname> also accepts national character + string constants (<literal>n'sample'</literal>) for compliance with + the <acronym>SQL</acronym> standard. Those are essentially the same as + regular string constants. + </para> </sect3> <sect3 id="sql-syntax-strings-escape"> -- 2.45.0 --p4x73ewzxxrnlijb-- ^ permalink raw reply [nested|flat] 1+ messages in thread
only message in thread Thread overview: 1+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-05-05 00:15 [PATCH] Document nchar data type alias Erik Wienhold <ewie@ewie.name>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox