I have a date/time field named EntryDate with a default value of getdate() so when a record is created the current date and time are recorded. The timestamp looks like this: 6/8/2005 10:47:49 AM
if I issue these
I get 0 results. However, this would give me results:
How can I access these records using "entrydate=..." instead of "entrydate BETWEEN..."?
if I issue these
Code:
select * from mytable where entrydate='6/8/2005 10:47:49 AM'
select * from mytable where entrydate='6/8/2005'
select * from mytable where entrydate like '6/8/2005%%'
Code:
select * from mytable where entrydate BETWEEN '6/7/05' AND '6/9/05'