Skip to content

Commit 70a8c0e

Browse files
author
Olivier Auverlot
committed
Some changes
1 parent 4c7cef9 commit 70a8c0e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/official-site/sqlpage/migrations/71_blog_pagination.sql

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ INSERT INTO blog_posts (title, description, icon, created_at, content)
33
VALUES
44
(
55
'How to use the pagination component',
6-
'Concrete advice on how to make your SQLPage webapp fast',
6+
'A tutorial for using the pagination component',
77
'sailboat-2',
88
'2025-11-10',
99
'
@@ -62,10 +62,11 @@ We can now read and display the data based on the active page. To do this, we si
6262
SELECT
6363
''table'' as component
6464
SELECT
65-
AlbumId AS id,
66-
Title AS title
65+
user_id AS id,
66+
last_name AS "Last name",
67+
first_name AS "First name"
6768
FROM
68-
album
69+
users
6970
LIMIT CAST($MAX_RECORD_PER_PAGE AS INTEGER)
7071
OFFSET (CAST($page AS INTEGER) - 1) * CAST($MAX_RECORD_PER_PAGE AS INTEGER);
7172
```

0 commit comments

Comments
 (0)