摘要:
以前拼接的写法set @sql=' select * from table where 1=1 'if (@addDate is not null) set @sql = @sql+' and addDate = '+ @addDate + ' ' if (@name <>'' and is not null) set @sql = @sql+ ' and name = ' + @name + ' 'exec(@sql)下面是 不采用拼接SQL字符串实现多条件查询的解决方案第一种写法是 阅读全文
posted @ 2010-11-09 21:50
小锋神
阅读(5705)
评论(0)
推荐(1)

浙公网安备 33010602011771号