create table testTable
(
id number,
name varchar2(100)
)
select * from testTable
insert into testTable(id,name) values(1,'user1')
insert into testTable(id,name) values(2,'')
insert into testTable(id,name) values(3,null)

select count(id)  from testTable t where t.name=''

select count(id)  from testTable t where t.name is null or t.name!=''


select id,nvl(name,'null') from testTable

select  id,nullif(name,'1231231') from testTable





drop table testTable

 

相关文章:

  • 2021-11-30
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-03-06
  • 2022-01-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2021-11-10
  • 2021-12-20
  • 2021-07-22
  • 2021-07-01
  • 2021-11-30
相关资源
相似解决方案