Shamelessly promoting PHP, Myself, and my services
13 Apr
We all deal with queries that return more rows than what our screen will let us view, wouldn’t it be nice to be able paginate the results ?
Rather than having to scroll back, and scan the rows, you can use the built in pager. I didn’t know about this, until Will from freenode mentioned it in #mysql. Long story short..
mysql> \P less
mysql> PAGER set to less
mysql> select foo,bar from table
The format is much more readable than usual. Some of you may have already known about this, but I didn’t. So I hope it’s helpful.
One Response for "MySQL Tip - Paging your results in the MySQL CLI"
[...] This could be filed under “my bag of neat mysql tricks” [...]
Leave a reply