Skip to content

Commit 32f5bd5

Browse files
authored
Merge pull request #3376 from lightify97/patch-1
Update postgresql-row_number.md
2 parents 2791737 + 5b2d38e commit 32f5bd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/postgresql/postgresql-window-function/postgresql-row_number.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ FROM
180180
ROW_NUMBER () OVER (
181181
ORDER BY
182182
product_name
183-
)
183+
) as rn
184184
FROM
185185
products
186186
) x
187187
WHERE
188-
ROW_NUMBER BETWEEN 6 AND 10;
188+
rn BETWEEN 6 AND 10;
189189
```
190190

191191
![PostgreSQL ROW_NUMBER with pagination](/postgresqltutorial/PostgreSQL-ROW_NUMBER-with-pagination.png)

0 commit comments

Comments
 (0)