日期:2014-05-16  浏览次数:20714 次

MYSQL 中date_format和 ORACLE 中 to_char
sendtime为表中时间字段

MYSQL :
date_format(sendtime,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')

ORACLE:
to_char(sendtime,'yyyy-MM-dd')=to_char(sysdate,'yyyy-MM-dd')