mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +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:
|
||||
|
||||
<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>
|
||||
|
||||
<screen>
|
||||
|
Reference in New Issue
Block a user