MySQL:Curdate()vs Now() [英] MySQL: Curdate() vs Now()

查看:218
本文介绍了MySQL:Curdate()vs Now()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ Curdate() Now()

推荐答案

对于像这样的问题,请务必先阅读手册。 mySQL手册中的日期和时间功能

For questions like this, it is always worth taking a look in the manual first. Date and time functions in the mySQL manual

CURDATE()返回当前时间的DATE部分。 CURDATE()手册

CURDATE() returns the DATE part of the current time. Manual on CURDATE()

NOW()将日期和时间部分作为时间戳返回各种格式,具体取决于请求方式。 NOW()手册

NOW() returns the date and time portions as a timestamp in various formats, depending on how it was requested. Manual on NOW().

这篇关于MySQL:Curdate()vs Now()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆