Re: Updating Date
| From: | David Robley | Date: | Fri, 10 Nov 2000 00:23:02 +0000 |
| Subject: | Re: Updating Date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24591@lists.php.net to get a copy of this message | ||
On Fri, 10 Nov 2000, Christopher King wrote:
> I have a date field in all the records in a table. How do I advance the date
> one day in every record in one fell swoop.
>
> Thanks
>
>
> --
> Christopher King
> chris@create4u.com
If it's a date format, the following seems to work:
UPDATE table SET datefield = datefield + 1
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA