select出指定日期的数据怎么取?

数据库中已经有一字段为DateTime类型!(包含了时间)
现在比如我要取日期为'2002-10-01'的数据,不管时间是多少!
这个select语句应该怎么写?
[108 byte] By [jholdnew-老妞] at [2008-2-13]
# 1
select * from db.table where cloumn='2002-10-01';
mygirl-一块小石头 at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...
# 2
时间字段中的内容已经包含了时间了!
比如“2002-10-01 12:20:20”

您如果直接用'2002-10-01'是选不出来的噢!
jholdnew-老妞 at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...
# 3
select * from tb where convert(char(10),coldt,120)='2002-10-01';
inalover-奇遇 at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...
# 4
再给个思路 :)
select * from tb where coldt between '2002-10-01 00:00:00' and '2002-10-01 23:59:59'
inalover-奇遇 at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...
# 5
不好意思,你没说清楚。 照inalover(奇遇) 说的试吧
mygirl-一块小石头 at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...
# 6
楼主, 你是用那个sql server, 他们应该有不同的date function,
如我用 interbase 6 或 firebird 1, 会用
select * from tb
where cast(MyDateTime as date) = '2002-10-1';
erickleung at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...
# 7
sql server 2000
select * from table where column >'2002-10-1' and column<'2002-10-2'

select * from table where left(convert(varchar,column,120),10)='2002-10-01'
wenyu at 2007-10-20 > top of Msdn China Tech,MS-SQL Server,基础类...