Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf61823c

Browse files
author
Nikita Glukhov
committed
Fix docs structure for JSON_SCALAR()
1 parentf45a7f7 commitf61823c

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16908,7 +16908,7 @@ $ ? (@ like_regex "^\\d+$")
1690816908
<itemizedlist>
1690916909
<listitem>
1691016910
<para>
16911-
<xref linkend="functions-jsonscalar"/>
16911+
<link linkend="functions-jsonscalar"><literal>JSON_SCALAR</literal></link>
1691216912
</para>
1691316913
</listitem>
1691416914
<listitem>
@@ -16933,31 +16933,27 @@ $ ? (@ like_regex "^\\d+$")
1693316933
</listitem>
1693416934
</itemizedlist>
1693516935

16936-
<refentry id="functions-jsonscalar">
16937-
<refnamediv>
16938-
<refname>JSON_SCALAR</refname>
16939-
<refpurpose>create a JSON scalar</refpurpose>
16940-
</refnamediv>
16936+
<sect4 id="functions-jsonscalar">
16937+
<title><literal>JSON_SCALAR</literal></title>
16938+
<indexterm><primary>json_scalar</primary></indexterm>
1694116939

16942-
<refsynopsisdiv>
1694316940
<synopsis>
1694416941
<function>JSON_SCALAR</function> (
1694516942
<parameter>expression</parameter>
1694616943
<optional> RETURNING <replaceable class="parameter">json_data_type</replaceable> </optional>
1694716944
)
1694816945
</synopsis>
16949-
</refsynopsisdiv>
1695016946

16951-
<refsect1>
16947+
<sect5>
1695216948
<title>Description</title>
1695316949

1695416950
<para>
1695516951
<function>JSON_SCALAR</function> function generates a scalar
1695616952
<acronym>JSON</acronym> from a <acronym>SQL</acronym> data.
1695716953
</para>
16958-
</refsect1>
16954+
</sect5>
1695916955

16960-
<refsect1>
16956+
<sect5>
1696116957
<title>Parameters</title>
1696216958
<variablelist>
1696316959
<varlistentry>
@@ -16991,18 +16987,18 @@ $ ? (@ like_regex "^\\d+$")
1699116987
</listitem>
1699216988
</varlistentry>
1699316989
</variablelist>
16994-
</refsect1>
16990+
</sect5>
1699516991

16996-
<refsect1>
16992+
<sect5>
1699716993
<title>Notes</title>
1699816994
<para>
1699916995
Alternatively, you can construct <acronym>JSON</acronym> objects by
1700016996
using <productname>PostgreSQL</productname>-specific
1700116997
<function>to_json()</function>/<function>to_jsonb()</function> functions.
1700216998
See <xref linkend="functions-json-creation-table"/> for details.
1700316999
</para>
17004-
</refsect1>
17005-
<refsect1>
17000+
</sect5>
17001+
<sect5>
1700617002
<title>Examples</title>
1700717003
<para>
1700817004
Construct a JSON from the provided values various types:
@@ -17026,8 +17022,8 @@ SELECT JSON_SCALAR(true);
1702617022
true
1702717023
(1 row)
1702817024
</screen>
17029-
</refsect1>
17030-
</refentry>
17025+
</sect5>
17026+
</sect4>
1703117027

1703217028
<sect4 id="functions-jsonobject">
1703317029
<title><literal>JSON_OBJECT</literal></title>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp