oracle:
select * from tablename where trunc(TM)=to_date('2018-06-20','YYYY-MM-DD')
mysql:
select * from 表名 where to_days(时间字段名) = to_days(now());
oracle:
select * from tablename where trunc(TM)=to_date('2018-06-20','YYYY-MM-DD')
mysql:
select * from 表名 where to_days(时间字段名) = to_days(now());