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

Answers were Sorted based on User's Feedback



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

Answer / ismail

SELECT CURDATE(),SELECT CURRENT_DATE(),SELECT CURTIME(),
SELECT CURRENT_TIME(),SELECT now().

Is This Answer Correct ?    23 Yes 1 No

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

Answer / rajan vardawaj

SELECT CURDATE(); SELECT CURRENT_DATE(); SELECT CURTIME();
SELECT CURRENT_TIME();

Is This Answer Correct ?    17 Yes 1 No

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

Answer / 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

More MySQL Interview Questions

What is a string in mysql?

0 Answers  


What is mysql port?

0 Answers  


What are the critical issues you have resolved in your company

0 Answers   Wipro,


Is mysql free for enterprise?

0 Answers  


How does limit work in mysql?

0 Answers  






Explain multi-version concurrency control in MySQL?

2 Answers  


What is DML in MySQL?

1 Answers  


What is the password of mysql?

0 Answers  


How can we encrypt and decrypt a data presented in a table using mysql?

0 Answers  


How do I create a new database in mysql?

0 Answers  


What is a user defined variable?

0 Answers  


What is the use of mysqli_num_rows?

0 Answers  


Categories