首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

MYSQL 中date_format跟 ORACLE 中 to_char

2012-08-13 
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')

热点排行