Curdate() Vs current_date MySql
Asked Answered
T

3

13

What is the difference between curdate() and current_date in MySQL?

Taciturnity answered 6/1, 2014 at 6:46 Comment(2)
try to search for the answer yourself first....its very simple questionZia
@AbdulRahmanAnsari has it occurred to you that StackOverflow is a knowledgebase? Do you think this website should be reserved exclusively for the most complicated questions?Broncho
R
26

There's no difference. It says it right there in the manual:

CURRENT_DATE and CURRENT_DATE() are synonyms for CURDATE().

Romanesque answered 6/1, 2014 at 6:48 Comment(0)
W
4

Please refer the documentation http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html

curdate() and current_date() are synonymous.

However for your information there is a difference between curdate() and now()

Question: MySQL: Curdate() vs Now()

Windshield answered 6/1, 2014 at 6:52 Comment(0)
T
1

There is no difference, they are synonyms (see here).

Touch answered 6/1, 2014 at 6:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.