Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
53264c7b
Commit
53264c7b
authored
Nov 16, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Fix commas and improve spacing
parent
e93b6298
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
doc/src/sgml/queries.sgml
doc/src/sgml/queries.sgml
+19
-19
No files found.
doc/src/sgml/queries.sgml
View file @
53264c7b
...
@@ -1253,8 +1253,8 @@ ROLLUP ( <replaceable>e1</>, <replaceable>e2</>, <replaceable>e3</>, ... )
...
@@ -1253,8 +1253,8 @@ ROLLUP ( <replaceable>e1</>, <replaceable>e2</>, <replaceable>e3</>, ... )
GROUPING SETS (
GROUPING SETS (
( <replaceable>e1</>, <replaceable>e2</>, <replaceable>e3</>, ... ),
( <replaceable>e1</>, <replaceable>e2</>, <replaceable>e3</>, ... ),
...
...
( <replaceable>e1</>, <replaceable>e2</> )
( <replaceable>e1</>, <replaceable>e2</> )
,
( <replaceable>e1</> )
( <replaceable>e1</> )
,
( )
( )
)
)
</programlisting>
</programlisting>
...
@@ -1282,7 +1282,7 @@ GROUPING SETS (
...
@@ -1282,7 +1282,7 @@ GROUPING SETS (
( b, c ),
( b, c ),
( b ),
( b ),
( c ),
( c ),
( )
,
( )
)
)
</programlisting>
</programlisting>
</para>
</para>
...
@@ -1294,27 +1294,27 @@ GROUPING SETS (
...
@@ -1294,27 +1294,27 @@ GROUPING SETS (
units for the purposes of generating the individual grouping sets.
units for the purposes of generating the individual grouping sets.
For example:
For example:
<programlisting>
<programlisting>
CUBE ( (a,
b), (c,
d) )
CUBE ( (a,
b), (c,
d) )
</programlisting>
</programlisting>
is equivalent to
is equivalent to
<programlisting>
<programlisting>
GROUPING SETS (
GROUPING SETS (
( a, b, c, d )
( a, b, c, d )
,
( a, b )
( a, b )
,
( c, d )
( c, d )
,
( )
( )
)
)
</programlisting>
</programlisting>
and
and
<programlisting>
<programlisting>
ROLLUP ( a, (b,c), d )
ROLLUP ( a, (b,
c), d )
</programlisting>
</programlisting>
is equivalent to
is equivalent to
<programlisting>
<programlisting>
GROUPING SETS (
GROUPING SETS (
( a, b, c, d )
( a, b, c, d )
,
( a, b, c )
( a, b, c )
,
( a )
( a )
,
( )
( )
)
)
</programlisting>
</programlisting>
...
@@ -1333,27 +1333,27 @@ GROUPING SETS (
...
@@ -1333,27 +1333,27 @@ GROUPING SETS (
clause, then the final list of grouping sets is the cross product of the
clause, then the final list of grouping sets is the cross product of the
individual items. For example:
individual items. For example:
<programlisting>
<programlisting>
GROUP BY a, CUBE
(b,
c), GROUPING SETS ((d), (e))
GROUP BY a, CUBE
(b,
c), GROUPING SETS ((d), (e))
</programlisting>
</programlisting>
is equivalent to
is equivalent to
<programlisting>
<programlisting>
GROUP BY GROUPING SETS (
GROUP BY GROUPING SETS (
(a,b,c,d), (a,b,c,
e),
(a, b, c, d), (a, b, c,
e),
(a,b,d), (a,b,
e),
(a, b, d), (a, b,
e),
(a,c,d), (a,c,
e),
(a, c, d), (a, c,
e),
(a,d), (a,
e)
(a, d), (a,
e)
)
)
</programlisting>
</programlisting>
</para>
</para>
<note>
<note>
<para>
<para>
The construct <literal>(a,b)</> is normally recognized in expressions as
The construct <literal>(a,
b)</> is normally recognized in expressions as
a <link linkend="sql-syntax-row-constructors">row constructor</link>.
a <link linkend="sql-syntax-row-constructors">row constructor</link>.
Within the <literal>GROUP BY</> clause, this does not apply at the top
Within the <literal>GROUP BY</> clause, this does not apply at the top
levels of expressions, and <literal>(a,b)</> is parsed as a list of
levels of expressions, and <literal>(a,
b)</> is parsed as a list of
expressions as described above. If for some reason you <emphasis>need</>
expressions as described above. If for some reason you <emphasis>need</>
a row constructor in a grouping expression, use <literal>ROW(a,b)</>.
a row constructor in a grouping expression, use <literal>ROW(a,
b)</>.
</para>
</para>
</note>
</note>
</sect2>
</sect2>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment