mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1800: add missing CURDATE function definition to functions-mysql.ini
This commit is contained in:
@ -192,6 +192,10 @@ name=CURRENT_TIMESTAMP
|
|||||||
declaration=
|
declaration=
|
||||||
category=Date and Time Functions
|
category=Date and Time Functions
|
||||||
description=CURRENT_TIMESTAMP and CURRENT_TIMESTAMP() are synonyms for NOW().
|
description=CURRENT_TIMESTAMP and CURRENT_TIMESTAMP() are synonyms for NOW().
|
||||||
|
[CURDATE]
|
||||||
|
declaration=
|
||||||
|
category=Date and Time Functions
|
||||||
|
description=Returns the current date as a value in ''YYYY-MM-DD'' or\nYYYYMMDD\nformat, depending on whether the function is used in a\nstring or\nnumeric context.\n \n\nSELECT CURDATE();\n+------------+\n| CURDATE() |\n+------------+\n| 2019-03-05 |\n+------------+\n \nIn a numeric context (note this is not performing date\ncalculations):\n \nSELECT CURDATE() +0;\n \n+--------------+\n| CURDATE() +0 |\n+--------------+\n| 20190305 |\n+--------------+\n \nData calculation:\n \nSELECT CURDATE() - INTERVAL 5 DAY;\n \n+----------------------------+\n| CURDATE() - INTERVAL 5 DAY |\n+----------------------------+\n| 2019-02-28 |\n+----------------------------+
|
||||||
[CURTIME]
|
[CURTIME]
|
||||||
declaration=[fsp]
|
declaration=[fsp]
|
||||||
category=Date and Time Functions
|
category=Date and Time Functions
|
||||||
|
Reference in New Issue
Block a user