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
相关资源
相似解决方案