Home Sql Sqldate Mysql Date Only



Mysql Date Only
Posted on: April 3, 2006 at 12:00 AM
The Tutorial illustrate an example on Mysql Date Only. To understand this example, we create an example that include a Query date (now ( )) returns you a current date as field name 'DateOnly'.

Mysql Date Only

     

Mysql Date Only is used to show the current Date.

Understand with Example

The Tutorial illustrate an example on Mysql Date Only. To understand this example, we create an example that include a Query date (now ( ))  returns you a current date as field name 'DateOnly'.

date(now ( ) ) : The date(now ( )) return you  a current date value as Date Only field name. 

Query:-

mysql> select date(now())as DateOnly;

Output:-

+------------+
| DateOnly   |
+------------+
| 2008-12-22 |
+------------+
1 row in set (0.06 sec)

Related Tags for Mysql Date Only:


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Only  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.