按日期查询

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日

猜你喜欢

转载自www.cnblogs.com/wdbupt/p/10034464.html