SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Simple Question

  1. #1
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)

    Simple Question

    How can I increase the number in a row? I know this is a simple question but I just can't seem to find the answer to it. I can use SQL or php

  2. #2
    SitePoint Wizard Lats's Avatar
    Join Date
    Jun 2003
    Location
    Melbourne, AU
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean add 1 to every row?
    Code:
    UPDATE table SET field = field + 1
    Lats...


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
  •