mirror of
https://github.com/postgres/postgres.git
synced 2025-05-13 01:13:08 -04:00
doc: Small example improvement
Add a comment character before a line annotation, so that the query can be used as presented. Reported-by: Yaroslav Saburov <y.saburov@gmail.com> Author: Euler Taveira <euler@eulerto.com> Reviewed-by: Robert Treat <rob@xzilla.net> Discussion: https://www.postgresql.org/message-id/flat/174393459040.678.17810152410419444783%40wrigleys.postgresql.org
This commit is contained in:
parent
2260c7f6d9
commit
913c60b067
@ -671,7 +671,7 @@ SELECT max(temp_lo) FROM weather;
|
||||
we might try:
|
||||
|
||||
<programlisting>
|
||||
SELECT city FROM weather WHERE temp_lo = max(temp_lo); <lineannotation>WRONG</lineannotation>
|
||||
SELECT city FROM weather WHERE temp_lo = max(temp_lo); <lineannotation>-- WRONG</lineannotation>
|
||||
</programlisting>
|
||||
|
||||
but this will not work since the aggregate
|
||||
|
Loading…
x
Reference in New Issue
Block a user