在oracle 数据库中查询一个时间段!
2013-09-12
展开全部
假设表Table1中有字段setDate(Date类型)Oracle语法:select * from Table1 where (to_char(setDate,'YYYY-MM-DD') between '2009-01-01' and '2009-12-31')SQLServer语法:select * from Table1 where setDate between '2009-01-01' and '2009-12-31'access语法:select * from Table1 where setDate between #2009-01-01# and #2009-12-31#
2013-09-12
展开全部
select * from Table where to_date>=('2009-01-01' ,'yyyy-mm-dd') and to_date<=('2009-12-31' ,'yyyy-mm-dd')
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询