SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    update month + 1

    Hi there

    I have a table with some data fields. I wish to update the table in order to have the data entries as new_data= old_data + 1 month.

    Do you have any ideas about how to do that in the most easy way?

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've find it. Many thx anyway

    UPDATE my_table SET old_date = date_add( old_date, INTERVAL 1 MONTH )


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •