List:General Discussion« Previous MessageNext Message »
From:Baron Schwartz Date:May 3 2007 12:41pm
Subject:Re: Less | More
View as plain text  
John Kebbel wrote:
> Is there a mysql command line equivalent to | less or | more to make it
> easier to scan rows one screen at a time? 
> 
> 

Type ? from within the command-line client to see help.  One of the lines shows this:

pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.

On Linux, when I just type \P, it does this:

mysql> \P
PAGER set to '/usr/bin/less'
mysql>

Every query thereafter runs through less.

Baron
Thread
Less | MoreJohn Kebbel3 May
  • Re: Less | MoreBaron Schwartz3 May
    • RE: Less | MoreJerry Schwartz3 May
  • RE: Less | MoreJohn Trammell3 May
Re: Less | MoreJohn Kebbel3 May