RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1403 | Replies: 1
Reply
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

auto incrememnt mysql

  #1  
Jan 9th, 2005
is there a way to auto increment a value in a MySQL with PHP without having to lookup the value for instance:

UPDATE SomeTable SET cell=cell++ WHERE row='some_row'
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Posts: 2
Reputation: SmoothDime is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SmoothDime SmoothDime is offline Offline
Newbie Poster

Re: auto incrememnt mysql

  #2  
Jan 10th, 2005
UPDATE table SET cell = cell + 1 WHERE id = 5;

i pretty sure that works.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:56 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC