sql 存储过程 查询条件 空时显示所有数据

select * from 表 where 1=1变量

andselect

1=case when isnull(参数变量,'')='' then 1 elsecas

    case when 列=参数变量 then 1 else 0参数

    end

    end

相关文章
相关标签/搜索