I have table

id name pagebreak
1 q 0
2 p 0
3 r 1

5 q23 0
6 p23 0
7 r23 1



i want result like this
1 q 0
2 p 0

----------
3 r 1
---------
5 q23 0
6 p23 0
---------
7 r23 1

if pagebreakvalue is 0 then that records will come in same reultset..please help