“状态”,“申请人”,“开始时间”,“结束时间”作为查询条件,且这些条件都可以为空。
按照以往的作法,要判断好多种情况,要写一大堆判断语句。现在想请问有没有其他的更好的方法。谢谢!状态【 】
申请人【 】
开始时间【 】结束时间【 】查询
按照以往的作法,要判断好多种情况,要写一大堆判断语句。现在想请问有没有其他的更好的方法。谢谢!状态【 】
申请人【 】
开始时间【 】结束时间【 】查询
解决方案 »
- 程序中如何合理用到SqlDataReader
- 寻找msmq绝世高人,如果在工作组模式下访问远程msmq
- 学习 Lucene.Net!有问题请教..
- ASP.net和ASP的Session是否可以共享?(放分)
- 求助孟子、思归、愚翁、小山、LoveCherry、005,等高手帮忙啊。字符串处理问题!
- 高分在线等关于CheckBoxList的问题高手只要几秒就可以搞定马上接帖子
- 求教:session变量有效期的问题
- 页面表达式传值JS方法的问题!
- 请问.net framkwork sdk的下载
- 奇怪,是帮助错了,是我错了?
- asp.net2.0 GridView中数据导出问题!
- 紧急求救。关于局域网中两服务器间互相下载对方附件的问题
select * from tabe1 where
( (condition =@condition and @condition is not null ) or @condition is null)
and ((request =@request and @request is not null ) or @request is null)
and ((datetime >=@starttime and @starttime is not null ) or @starttime is null)
and ((datetime <=@endtime and @endtime is not null ) or @endtime is null)