MySQL the command line and pagers

前端 未结 5 2552
盖世英雄少女心
盖世英雄少女心 2021-02-19 10:24

I cant find anything about this from searching here.

I use mysql on the command line at work and I work with fairly large tables so I set the mysql pager allowing a mor

5条回答
  •  误落风尘
    2021-02-19 11:04

    The MySQL client just passes its output to whatever command you specify with \P (for "Pager").

    -Sin are commandline switches to the program less. From man less:

    -i Causes searches to ignore case
    -n Suppresses line numbers
    -S Causes lines longer than the screen width to be chopped rather than folded.

    For more options of the MySQL client, see reference.

提交回复
热议问题