我們一般在sql server中求日期,都是用datediff這個函數,但有同事問要如果取得只有結束時間,但要求得開始 ... 語法為:DATEDIFF ( datepart , startdate , enddate ).
yangxinde.pixnet.net