Code:
select startdate from fortest; --startdate is a datetime type --the following are startdate's records in table fortest startdate 2008-08-08 12:12:12.000 2008-08-21 21:21:21.000 2006-07-07 00:00:00.000 2009-09-09 00:00:00.000 2008-08-08 12:12:12.000 select startdate from fortest where startdate <'2009-09-09 10:00:00.000' and startdate>'2006-07-07 00:00:00.000'
Leave a comment: