34,590
社区成员
发帖
与我相关
我的任务
分享
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 ''