How many ways we can we find the current date using MySQL?

Answer Posted / vikas d.k. gupta

To get the Current Date:-
1. SELECT CURDATE();
2. SELECT CURRENT_DATE();
To get the Current Time:-
1. SELECT CURTIME();
2. SELECT CURRENT_TIME();
To get both at the same time:-
1. SELECT NOW();
2. SELECT SYSDATE();

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of php and mysql?

672


How to use regular expression in pattern match conditions?

515


What is acid in mysql?

468


How to decrement dates by 1 in mysql?

512


What is mysql_pconnect?

462






How to check if value already exists in mysql database in php?

439


how to take mysql database backup?

576


What is difference between mysql mysqli and pdo?

477


Is sqlite faster than mysql?

489


What is the difference between a heap table and temporary table?

499


What is mysql server?

482


What is localhost in mysql?

531


How many primary keys can be there in a table?

531


How do I quit mysql?

485


What is mysql community server?

485