How to configure sqlite to display headers by default

后端 未结 2 1463
北恋
北恋 2021-02-02 05:37

Is there any way to configure sqlite3 so that the headers will display by default?

I know I can use .headers on to turn on headers, but I have to keep typin

2条回答
  •  一向
    一向 (楼主)
    2021-02-02 05:49

    You can pass arguments in the command line too:

    sqlite3 db.db  -header -column  "select x from y;"
    

提交回复
热议问题