G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #1 select termdate form info where termdate like '2001-6%' 這句sql 錯誤
D driver Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #2 如果你的 termdate 是date型 应当写 select termdate from info where datediff(mm,getdate(),termdate)=0
A arm Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #3 select termdate form info where termdate between date1 and date2
J Jedei Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #4 看这个: Select termdate from info where SubString(Convert(Char,termdate,120),1,7) ='2001-06'
张 张剑波 Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #5 有求每月最小日、最大日的自定义函数,然后代进去: select termdate form info where termdate >= :mindate and termdate<=:maxdate
有求每月最小日、最大日的自定义函数,然后代进去: select termdate form info where termdate >= :mindate and termdate<=:maxdate
W wind_cloudy Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #6 select termdate form info where month(termdate)=6
J Jedei Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #7 受wind_cloudy启发 select termdate form info where year(termdate)=2001 and month(termdate)=6
G gz_wh Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-10 #8 select termdate form info where WHERE EXTRACT(MONTH FROM termdate) = 6