List:General Discussion« Previous MessageNext Message »
From:gerald_clark Date:November 8 2002 2:37pm
Subject:Re: DATETIME + days
View as plain text  
20021030 + 2 = 20021032
That is not a valid date.
You can't use regular math functions on dates.
Check out the date and time functions in the manual.

Silmara wrote:

>I executed the following statement:
>
>UPDATE Table1
>SET date_adm=date_adm+2
>where date_adm='2002-10-30';
>
>the result was...0000-00-00
>
>I´m working with Mysql-max-nt 3.23.39.
>
>What´s wrong?
>
>best regards,
>Sil
>
>
>---------------------------------------------------------------------
>Before posting, please check:
>   http://www.mysql.com/manual.php   (the manual)
>   http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <mysql-thread124394@stripped>
>To unsubscribe, e-mail
> <mysql-unsubscribe-gerald_clark=suppliersystems.com@stripped>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
>  
>


Thread
DATETIME + daysSilmara8 Nov
  • Re: DATETIME + daysgerald_clark8 Nov
  • re: DATETIME + daysEgor Egorov8 Nov