34,837
社区成员




select * from table where type is not null and type<>''
select * from table where type is not null and type <> ''
--可以用到索引
select * from table where isnull(type,'')<>'' --使用不到索引
select * from table where type is not null and type <> ''
select * from table where isnull(type,'')<>''
select *
from table
where isnull(type,'') <> ''
select *
from table
where type is not null and type is not ''