如何更改选择输出的格式(sqlite)
在 sqlite 上,我显示了表“用户” 如下所示,但选择的输出 均未得到很好的形式,因此很难看到:
sqlite> .header on
sqlite> select * from user;
id|first_name|last_name|age
1|Steve|Jobs|56
2|Bill|Gates|66
3|Mark|Zuckerberg|38
我想要更良好的选择输出如下所示或选择的任何格式都可以,只要格式比上面更好:
id|first_name|last_name |age
1 |Steve |Jobs |56
2 |Bill |Gates |66
3 |Mark |Zuckerberg|38
有什么方法可以改变选择输出的格式?
On SQLite, I displayed the table "user" as shown below but the select output is not well-formatted so it's difficult to see:
sqlite> .header on
sqlite> select * from user;
id|first_name|last_name|age
1|Steve|Jobs|56
2|Bill|Gates|66
3|Mark|Zuckerberg|38
I want more well-formatted select output something like as shown below or any formats of select output are fine as long as the formats are better than above:
id|first_name|last_name |age
1 |Steve |Jobs |56
2 |Bill |Gates |66
3 |Mark |Zuckerberg|38
Are there any ways to change the format of select output?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面的此命令设置输出模式“ box” :
然后,这就是下面的样子:
和,下面的此命令集 输出模式“表” :
然后,然后,然后这就是下面的样子:
总共有 14个输出模式,如下所示:
这些命令显示了命令“ .mode” :
或:
然后 : ,这就是下面的样子:
This command below sets the output mode "box":
Then, this is how it looks like below:
And, this command below sets the output mode "table":
Then, this is how it looks like below:
There are 14 output modes in total as shown below:
And these commands show the details of the command ".mode":
Or:
Then, this is how it looks like below: