码迷,mamicode.com
首页 > 其他好文 > 详细

按日期查询

时间:2018-11-28 22:10:37      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:to_date   table   sele   0.11   where   bsp   HERE   tab   from   

 

1.select * from  [table] where [date]=to_date(‘2018-10-11‘,‘yyyy-mm-dd‘);            //查询2018.10.11日

 

2.hh24:mi:ss select * from  [table] where [date]=to_date(‘2018-10-11 00:00:00‘,‘yyyy-mm-dd hh24:mi:ss‘);  //查询2018.10.11 00:00:00日

按日期查询

标签:to_date   table   sele   0.11   where   bsp   HERE   tab   from   

原文地址:https://www.cnblogs.com/wdbupt/p/10034464.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!