Priti's Technical Corner

March 1, 2014

How to paginate mysql query output on mysql command line!


Today while working I came across a good trick for mysql command line user. How to paginate the query result. On mysql prompt

mysql> pager more
PAGER set to ‘more’

mysql>select * from products

mysql will start showing you results in paginated way! Small but a good trick in your command line skill kitty !

To reset the pager

mysql> nopager
PAGER set to stdout

Create a free website or blog at WordPress.com.

%d bloggers like this: