如何显示“ null”(sqlite)
在 sqlite 上,我显示了表“用户” ,如下所示,但“ null” 未显示,因此我无法区分” null“ 和空白(空字符串):
sqlite> .header on
sqlite> .mode box
sqlite> select * from user;
┌────┬─────────────────┐
│ id │ name │
├────┼─────────────────┤
│ 1 │ Steve Jobs │
│ 2 │ │ <- Null
│ 3 │ │ <- Null
│ 4 │ Bill Gates │
│ 5 │ │ <- Blank(Empty String)
│ 6 │ Mark Zuckerberg │
└────┴─────────────────┘
有什么方法可以显示“ null” ?
On SQLite, I displayed the table "user" as shown below but "Null" is not displayed so I cannot differentiate between "Null" and Blank(Empty String):
sqlite> .header on
sqlite> .mode box
sqlite> select * from user;
┌────┬─────────────────┐
│ id │ name │
├────┼─────────────────┤
│ 1 │ Steve Jobs │
│ 2 │ │ <- Null
│ 3 │ │ <- Null
│ 4 │ Bill Gates │
│ 5 │ │ <- Blank(Empty String)
│ 6 │ Mark Zuckerberg │
└────┴─────────────────┘
Are there any ways to display "Null"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面的此命令可以设置为
null
值显示的内容:因此,SET
null
如下所示:然后,为
显示,
值如下所示:null
。 null下一步,set
这是null。
,如下所示:然后,
这是null
,用于null
>如下所示的值:下面的这些命令可以显示命令
.nullvalue
:或:
然后,这就是下面的样子:
This command below can set what to show for
NULL
values:So, set
NULL
as shown below:Then,
NULL
is displayed forNULL
values as shown below:Next, set
This is NULL.
as shown below:Then,
This is NULL
is displayed forNULL
values as shown below:And, these commands below can show the details of the command
.nullvalue
:Or:
Then, this is how it looks like below: