How to best display in Terminal a MySQL SELECT returning too many fields?

后端 未结 12 895
你的背包
你的背包 2020-12-04 04:32

I\'m using PuTTY to run:

mysql> SELECT * FROM sometable;

sometable has many fields and this results in many columns trying

12条回答
  •  难免孤独
    2020-12-04 04:56

    You can use tee to write the result of your query to a file:

    tee somepath\filename.txt
    

提交回复
热议问题