I\'m using PuTTY to run:
mysql> SELECT * FROM sometable;
sometable has many fields and this results in many columns trying
Just to complement the answer that I thought best, I also use less -SFX but in a different way: I like to ad it to my .my.cnf file in my home folder, an example cnf file looks like this:
[client]
user=root
password=MyPwD
[mysql]
pager='less -SFX'
The good thing about having it this way, is that less is only used when the output of a query is actually more than one page long, here is the explanation of all the flags:
Note: in the .my.cnf file don't put the pager command below the [client] keyword; although it might work with mysql well, mysqldump will complain about not recognizing it.