日期:2014-05-18 浏览次数:20500 次
Select Top 1 * From ZN_ad Where (AD_State_radio=1 and now BETWEEN AD_BeginTime and AD_EndTime) or 1 = 1
------解决方案--------------------
Select Top 1 * From ZN_ad Where AD_State_radio=1 and getdate() BETWEEN AD_BeginTime and AD_EndTime or (not (AD_State_radio=1))