Reply to quick way to add 1 to an integer value in a mysql table

Your name:

Reply:


Posted by mcyi2mr3@lycos.co.uk on 11/18/05 22:47

Hi guys

Does anyone know a quick way to add 1 to an integer value in a mysql
table collumn.

The way i use now is to extract the value from the appropriate collumn
using select then use php to create a new value ($newnumber =
$oldnumber +1) and then insert this back into my table.

Is there a faster way to do this where you can get mysql to just add +1
to whatever value is in the collumn? I have a feeling there is but my
mysql knowledge is a bit patchy.

Any help on this will be greatly appreciated.

Thanks

marc

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация