sql 为空不做查询条件 select * from usertable where 1=1 and (name=@name or @name='') and (page=@page or @page='')