Turn from:http://blog.chinaunix.net/space.php?uid=11327712&do=blog&id=32416MySQL Date Type: Date format, occupied storage space, date range comparison.Date type storage space date format date range-----------------------------------------------------
Original link:MySQL time and date function-Redfox-Blog ParkHttp://www.cnblogs.com/redfox241/archive/2009/07/23/1529092.html--------------------------------------------------------------------------------------------------------------- ---------------
First, MySQL gets the current date time function1.1 Get the current date + time (date + times) function: Now ()Mysql> Select Now ();+---------------------+| Now () |+---------------------+| 2008-08-08 22:20:46 |+---------------------+In addition to
Original: http://www.51sdj.com/phpcms/picture/2009/0711/picture_133.htmlFirst, MySQL gets the current date time function1.1 Get the current date + time (date + times) function: Now ()Mysql> Select Now ();+---------------------+| Now () |+------------
1.1 Get the current date + time (date + times) function: Now ()Mysql> Select Now (); + ——————— + | Now () | + ——————— + | 2013-04-08 20:56:19 | + ——————— +In addition to the now () function to get the current datetime, MySQL has the following
1.1 Get Current date + time (date + times) function: Now ()
Mysql> Select Now ();
+---------------------+
| Now () |
+---------------------+
| 2008-08-08 22:20:46 |
+---------------------+
In addition to the now () function to get the current date
MySQL Date TypeMySQL Date Type: Date format, occupied storage space, date range comparison.Date type storage space Date format date range------------ --------- --------------------- -----------------------------------------DateTime 8 bytes
MySQL Common date addition and subtraction function and example tutorialMySQL Date TypeMySQL Date Type: Date format, occupied storage space, date range comparison.Date type storage space Date format date range------------ --------- ---------------
MYSQL gets the current date and date formatGet system Date: Now ()Formatted Date: date_format (date, format)Note: Date: Time fieldFormat: Date formatsReturns the system date, output 2009-12-25 14:38:59Select Now ();Output 09-12-25Select Date_format (
MYSQL gets the current date and date formatGet system Date: Now ()Formatted Date: date_format (date, format)Note: Date: Time fieldFormat: Date formatsReturns the system date, output 2009-12-25 14:38:59Select Now ();Output 09-12-25Select Date_format (
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.