Re: losing my mind about sytnax error in window clause

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rein Petersen <email(at)reinpetersen(dot)com>
Cc: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: losing my mind about sytnax error in window clause
Date: 2022-06-07 23:40:26
Message-ID: 1432226.1654645226@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Rein Petersen <email(at)reinpetersen(dot)com> writes:
> ERROR: syntax error at or near "BY"
> LINE 16: WINDOW w AS ( PARITION BY locationid, partindex ORDER BY cr...
> ^

If you really spelled it like that, "PARTITION BY" should work better.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rob Sargent 2022-06-07 23:45:24 Re: losing my mind about sytnax error in window clause
Previous Message Rein Petersen 2022-06-07 23:03:42 losing my mind about sytnax error in window clause