Saw the following SQL relating to paging results with cursors and am having trouble finding more information on how part of it works:
SELECT b.* FROM books b
WHERE (b.name, id) > (select b2.name, b2.id
from books b2
where b2.id = ?
)
ORDER BY b.name;
What happens when you have multiple columns within a single comparison expression? I haven't found any other examples of this.