判断记录是否存在和日期差操作

if (not exists(select 0 from [DownloadJobLog] where [JobName]=@JobName and (DATEDIFF(dd,[ImportDate],@ImportDate)=0)))

posted on 2010-03-04 17:29  伊伦  阅读(175)  评论(0编辑  收藏  举报

导航