select * from table where time>='2002-09-01' and time<='2002-09-10'or select * from table where time between '2002-09-01' and '2002-09-10'
解决方案 »
- 谁知道这种情况?
- cast(a.日期 as varchar(10))=cast(Fdate as varchar(10))
- SQL 2000中能将多个数据库同时进行异地备份吗?
- 关于这段游标写法,为什么报只读?The cursor is READ ONLY.
- MS SQL2000 JDBC驱动连接问题(请高手进,小弟万分感谢)
- (附图说明)如果将这将两个表的数据合并在一起。
- (在线等,马上结帐)求一删除语句,不写日志,要有条件的删除,非Truncate
- [求助]如何挑选出"今天生日"的名单
- 紧急求救
- sqlserver2005存储过程问题,急
- Can you help me to design a SQL?
- sql连接性能比较
这句话肯定是对的
你的日期字段是什么类型的?
select *
from table
where datediff(dy,'你的时间字段','2002-1-1')<=0
and datediff(dy,'你的时间字段','2002-2-12')>=0
这句话在access里为什莫不好使呀?
select * from table where time between #2002-09-01# and #2002-09-10#