mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
doc: split long query into multiple lines
Report from Erik Rijkers
This commit is contained in:
@@ -389,7 +389,9 @@ SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM emps
|
|||||||
order in which the rows are output.) Here is an example:
|
order in which the rows are output.) Here is an example:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT depname, empno, salary, rank() OVER (PARTITION BY depname ORDER BY salary DESC) FROM empsalary;
|
SELECT depname, empno, salary,
|
||||||
|
rank() OVER (PARTITION BY depname ORDER BY salary DESC)
|
||||||
|
FROM empsalary;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
|
Reference in New Issue
Block a user