sql 为空不做查询条件

select * from usertable where 1=1 and (name=@name or @name='') and (page=@page or @page='')

转载于:https://www.cnblogs.com/muxueyuan/p/11067336.html

猜你喜欢

转载自blog.csdn.net/weixin_34097242/article/details/93278644
今日推荐