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 |
How to get a version of mysql?
Consider a scenario where you have two to three tables with thousand tuples in each of them. Now, if you have to perform a join operation between them will you choose to perform filtering of rows or transforming of rows first.
What are the applications required to support mysql?
Explain multi-version concurrency control in MySQL?
What is the difference between primary and unique key
How to check if a record exists in a mysql database php?
What is general log in mysql?
Can you tell the difference between ereg_replace() and eregi_replace()?
What is ddl, dml, and dcl?
How to get the number of rows selected or affected by a sql statement?
What is auto increment in mysql?
What is the difference between the primary and unique key in mysql?