select * from tableB
where starttime <='2005-1-1 10:10:10' and endtime>='2005-1-1 10:10:10'
where starttime <='2005-1-1 10:10:10' and endtime>='2005-1-1 10:10:10'
解决方案 »
- 简单排序
- SQL数据库异地备份失败,请高手帮忙
- 经常看到一些 sp_monitor sp_help 这是什么意思 不家在查询中我为什么不能像声明变量比如 int mydate,youdate (其它问题内详)
- >>>>>如何快速获得一个不包含时间的日期?
- 如何编写语句 修改Check约束?
- bit(0,1)转换为int
- 如何查询两条记录间记录?
- 关于ms sql当中中文模糊查询的一点问题~~~~~求教!!!!!
- 我新手,有人能给解释一下,错在哪里了吗?
- 存储过程中的@@rowcount的值问题,高手请进
- 如何查出某一字段里的值得包含了一个非数字和非字母的字符呢
- 请问如何通过运行sql语句来整理一个表格?
from tableb
where convert(char(8),'2005-1-1 10:10:10',114) between starttime and enddtime
where starttime <='2005-1-1 10:10:10' and endtime>='2005-1-1 10:10:10'