小编Ale*_*hev的帖子

ClickHouse:哪里 0 为 Null?

create database test

create table test.A (id UInt8, data String) engine MergeTree() order by (id)

create table test.B (id UInt8, data String) engine MergeTree() order by (id)

insert into test.A values (0,'a'),(1,'b'),(2,'c')

insert into test.B values (1,'x'),(2,'y'),(3,'z')
Run Code Online (Sandbox Code Playgroud)
select *, isNull(a.id), isNull(b.id) from test.A a full join test.B b on a.id = b.id

在此输入图像描述

如何判断0是0还是0是Null?

sql clickhouse

3
推荐指数
1
解决办法
3440
查看次数

标签 统计

clickhouse ×1

sql ×1