删除每天某一时间段的数据 我想删除每天某一时间段的数据,如想删除17:30---08:00的加班数据,请问SQL如何写?偶是菜鸟,望赐教。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果有时间字段 ,比如 t_date直接 delete from tabel1 where datepart(hh,t_date)>17 and datepart(hh,t_date)<8 哦,改一下,上面那个没有算分钟delete from tabel1 where (datepart(hh,t_date)>17 and datepart(n,t_date)>30) and datepart(hh,t_date)<8 http://topic.csdn.net/u/20080523/17/d2707463-bad5-4554-ba5c-117ba4b9cfc3.html delete from table where datecolumn between '2008-05-03 17:30' and '2008-05-03 08:00' delete from tabel1 where (datepart(hh,ftime)>17 and datepart(n,ftime)>30) or datepart(hh,ftime)<8 你们这只是删除某一天的语句,我是想一次性删除一个月的,如五月份所有这个时间段的数据。表结构如下: NUMBER FTIME JH 01 2007-5-23 17:30:32 1 关于sql2008的安装 存储过程的where 怎样删除前面的数据,只保留最正面100行 急求一条SQL语句。。。。。 在 where 中如何用变量 接收中文乱码问题 数据库名称含有"."的复制问题 用存储过程往数据表中插入100条数据。 由于数据量太大,使用SQL遇到一些问题,求助 Microsoft SQL Server Management Studio 2008 筛选问题 删除每天某一时间段的数据 字符串如何转换成可计算公式?
表结构如下: NUMBER FTIME JH
01 2007-5-23 17:30:32 1