create table r_test
(
a int,
b varchar(255)
)
insert r_test values(0, null)
insert r_test values(1, 'abcd')
select a, CASE WHEN b is null THEN '' ELSE b END as b from r_test
查询结果
0 ''
1 'abcd'
相关文章:
-
2022-12-23
-
2021-09-16
-
2022-12-23
-
2021-09-02
-
2022-01-12
-
2022-12-23
-
2022-12-23
猜你喜欢
-
2021-04-22
-
2022-12-23
-
2022-12-23
-
2021-12-13
-
2021-09-23
-
2021-04-25
-
2022-12-23
相关资源
-
下载
2021-06-24
-
下载
2022-12-27
-
下载
2023-01-24
-
下载
2022-12-06
-
下载
2022-11-30