SQL查询时间范围语句
SQL里查询SELECTA,B,C,D字段FROMXY表where(id=27orid=28)and时间WRITETIME在2009-01-26到2009-02-06的每...
SQL里
查询SELECT A,B,C,D字段 FROM XY表 where
(id=27 or id=28)and 时间WRITETIME 在2009-01-26到2009-02-06的每天的08:00:00 到 12:30:00之剑
怎么写· 展开
查询SELECT A,B,C,D字段 FROM XY表 where
(id=27 or id=28)and 时间WRITETIME 在2009-01-26到2009-02-06的每天的08:00:00 到 12:30:00之剑
怎么写· 展开
展开全部
sql数据库
SELECT A,B,C,D字段 FROM XY表 where(id=27 or id=28)and 时间WRITETIME BETWEEN '2009-1-26' AND '2009-02-06' and 时间WRITETIME BETWEEN '08:00:00' AND ‘12:30:00’
SELECT A,B,C,D字段 FROM XY表 where(id=27 or id=28)and 时间WRITETIME BETWEEN '2009-1-26' AND '2009-02-06' and 时间WRITETIME BETWEEN '08:00:00' AND ‘12:30:00’
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
and WRITETIME>'2009-01-26' and WRITETIME>'2009-02-06'
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
SELECT A,B,C,D FROM XY where (id=27 or id=28) and WRITETIME between '2009-01-26' and dateadd(dd,1,'2009-02-06') and convert(varchar(8),WRITETIME,108) between '08:00:00' and '12:30:00'
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询