datetime问题 --表结构create table t1( userid char (100), mytime datetime)里边数据如下[userid ],[mytime ]人员1 2008-8-3 12:22:55人员2 2008-10-18 4:34:12人员3 2009-4-1 20:22:45人员3 2009-12-1 10:29:23----------------------------我想查询 2008-08 至 2009-04 的所有数据,怎么写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from t1where convert(varchar(7),mytime) between '2008-08' and '2009-04' select * from t1 where mytime between '20080801' and '20090401' select * from t1where convert(varchar(7),mytime,120) between '2008-08' and '2009-04' select * from table where convert(nvarchar(7), mytime,120) between '2008-08' and '2009-04 ' [SQL,求教] 期盼。。 怎么查询到底是哪条sql语句执行慢呢 生成工资条? 数据表 输出结果标上一个顺序号(给用户看),不要表里的那个ID 数据表中有个字段有保存多个ID,如何一起显示 怎么马上知道谁访问了我的SQL,有什么工具或用什么命令呢 还是排序规则问题,期待老大再次出现 sql server2000的安装??? 急!!oracle8i问题 1天了,还是连不上sql2005数据库,别的代码都行,就这个OA不行 分组统计 简单
where convert(varchar(7),mytime) between '2008-08' and '2009-04'
where convert(varchar(7),mytime,120) between '2008-08' and '2009-04'