我想從數據表中鏈接徽標鏈接爲< = fromdate和> = todate。在sql查詢中獲取日期過濾器的值date
我寫此查詢中獲取價值
select * from getlogo
select * from getlogo
where (Convert(date,logofrom) >= getdate()) and (Convert(date,logoto) <= getdate())
and active=0
today = 03/25/2015
from = database.value logofrom
to = database.value logoto
how to compare this and get value
結果:
任何答案是否能解決您的問題? – jpw 2015-04-02 21:39:57