Updating all in a culumn with and increment by 1
Hello! everyone out there!
I am having a table that looks like this in phpmyadmin
...........................................................................
. id . fname . lname . user_id . trackdate . country .
...........................................................................
. 1 . Jonh . Mark . 10 . 21 . USA .
. 2 . Frank . Yank . 12 . 12 . Canada .
. 3 . Biola . Bud . 13 . 30 . Gahna .
. 4 . James . Game . 15 . 24 . Nigeria .
. 5 . Jamba . David . 16 . 9 . England .
. 6 . Luke . Sola . 17 . 1 . Japan .
. 7 . Foster . Fraka . 18 . 28 . USA .
. 8 . Grace . Jack . 19 . 14 . USA .
. 9 . Kate . Bala . 20 . 18 . Nigeria .
. 10 . Maze . Good . 21 . 6 . USA .
...........................................................................
I want all the records in 'trackdate' culumn to be incremented by 1 anytime the page that holds the query runs.
example: 21 becomes 22, 12 becomes 13, 30 becomes 31, and so on in that same culumn.
can i get a mysql query that can do this, any help will be appreciated
Thanks
Subject
Written By
Posted
Updating all in a culumn with and increment by 1
September 10, 2009 10:12AM
September 10, 2009 10:15AM
September 10, 2009 11:07AM
September 12, 2009 04:42PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.