MYSQL 中date_format跟 ORACLE 中 to_char

MYSQL 中date_format和 ORACLE 中 to_charsendtime为表中时间字段MYSQL :date_format(sendtime,%Y-%m-%d

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')