以下方式:
- WHERE DateDiff(dd, OrderDate, '01/01/2006') = 0
- WHERE Convert(varchar(20), OrderDate, 101) = '01/01/2006'
- WHERE Year(OrderDate) = 2006 AND Month(OrderDate) = 1 and Day(OrderDate)=1
- WHERE OrderDate LIKE '01/01/2006%'
- WHERE OrderDate >= '01/01/2006' AND OrderDate < '01/02/2006'
參考:
沒有留言:
張貼留言