Home >> MySql >> How can find current date function in MySql

How can find current date function in MySql

1)-now() function is used for current date and time.

Syntax

now()

Example

SELECT now();

Output

2022-05-20 12:05:07

2)-CURDATE() function is used for current date.

Syntax

CURDATE()

Example

SELECT CURDATE();

Output

2022-05-20

 

Post Your Comment

Next Questions
What is HEAP table
What is CSV table
What is MERGE table
What is federated table
What are data types
Numeric data types
Floating data types
Date and Time data types
String data types
Enum data types
SET data types
Difference between varchar and char
Difference between Tinyint and smallint
Difference between enum and set
Difference between signed and unsigned
What is key
What is super key
What is candidate key
What is primary key
What is unique key
What is foreign key
What is join
What is cross join
What is natural join
What is outer join

Copyright ©2022 coderraj.com. All Rights Reserved.