How many ways we can we find the current date using MySQL?
Answers were Sorted based on User's Feedback
Answer / ismail
SELECT CURDATE(),SELECT CURRENT_DATE(),SELECT CURTIME(),
SELECT CURRENT_TIME(),SELECT now().
Is This Answer Correct ? | 23 Yes | 1 No |
Answer / rajan vardawaj
SELECT CURDATE(); SELECT CURRENT_DATE(); SELECT CURTIME();
SELECT CURRENT_TIME();
Is This Answer Correct ? | 17 Yes | 1 No |
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 |
What is a string in mysql?
What is mysql port?
What are the critical issues you have resolved in your company
Is mysql free for enterprise?
How does limit work in mysql?
Explain multi-version concurrency control in MySQL?
What is DML in MySQL?
What is the password of mysql?
How can we encrypt and decrypt a data presented in a table using mysql?
How do I create a new database in mysql?
What is a user defined variable?
What is the use of mysqli_num_rows?