Oracle中如何查询带日期的查询语句
selectMOBILEfromlocal_memberwhere((FIRSTLOGINTIMEbetweento_date(2010-2-100:00:00,'yyy...
select MOBILE from local_member where ( (FIRSTLOGINTIME between to_date(2010-2-1 00:00:00,'yyyy-mm-dd') and to_date(2010-2-28 23:59:59,'yyyy-mm-dd')) and ( lASTLOGINTIME between to_date(2010-2-1 00:00:00,'yyyy-mm-dd') and to_date(2010-2-28 23:59:59,'yyyy-mm-dd')))
展开
展开全部
简单号,ROACEL里查询日期带时间的是
to_date('20100201 00:00:00','YYYYMMDD hh24:mi:ss'芦斗)这样的。纳哗闭
你的语句可以改成
select MOBILE
from local_member
where ( (FIRSTLOGINTIME between to_date('20100201 00:00:00','yyyymmdd hh24:mi:ss') and to_date('20100228 23:59:59','yyyymmdd hh24:mi:ss')) and ( lASTLOGINTIME between to_date('20100201 00:00:00','yyyymmdd hh24:mi:ss'洞裂) and to_date('20100228 23:59:59','yyyymmdd hh24:mi:ss')))
to_date('20100201 00:00:00','YYYYMMDD hh24:mi:ss'芦斗)这样的。纳哗闭
你的语句可以改成
select MOBILE
from local_member
where ( (FIRSTLOGINTIME between to_date('20100201 00:00:00','yyyymmdd hh24:mi:ss') and to_date('20100228 23:59:59','yyyymmdd hh24:mi:ss')) and ( lASTLOGINTIME between to_date('20100201 00:00:00','yyyymmdd hh24:mi:ss'洞裂) and to_date('20100228 23:59:59','yyyymmdd hh24:mi:ss')))
展开全部
select MOBILE
from local_member
where ( (FIRSTLOGINTIME between to_date('2010-2-1 00:00:00','yyyy-mm-dd hh24:miss') and to_date('正郑2010-2-28 23:59:59','yyyy-mm-dd hh24:mi:ss')) and ( lASTLOGINTIME between to_date('2010-2-1 00:00:00','yyyy-mm-dd hh24:mi:ss'举旦颂) and to_date('2010-2-28 23:59:59'迟明,'yyyy-mm-dd hh24:mi:ss')))
from local_member
where ( (FIRSTLOGINTIME between to_date('2010-2-1 00:00:00','yyyy-mm-dd hh24:miss') and to_date('正郑2010-2-28 23:59:59','yyyy-mm-dd hh24:mi:ss')) and ( lASTLOGINTIME between to_date('2010-2-1 00:00:00','yyyy-mm-dd hh24:mi:ss'举旦颂) and to_date('2010-2-28 23:59:59'迟明,'yyyy-mm-dd hh24:mi:ss')))
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2010-04-13
展开全部
select MOBILE
from local_membe
where FIRSTLOGINTIME between to_date('1980-06-04','yyyy-mm-dd') and to_date('册基罩1987-07-09','yyyy-mm-dd');
如果锋老要加时分秒应该 to_date('州闹2010-2-28 23:59:59','yyyy-mm-dd hh24:mi:ss')
from local_membe
where FIRSTLOGINTIME between to_date('1980-06-04','yyyy-mm-dd') and to_date('册基罩1987-07-09','yyyy-mm-dd');
如果锋老要加时分秒应该 to_date('州闹2010-2-28 23:59:59','yyyy-mm-dd hh24:mi:ss')
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
将所有'yyyy-mm-dd'替换成'yyyy-mm-dd hh24:mi:ss'
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询