You are here: Re: UPDATE and increment by 10 « All PHP « IT news, forums, messages
Re: UPDATE and increment by 10

Posted by Lenny on 09/28/16 11:57

On 3 Sep 2006 22:41:09 -0700, version2 wrote...
>
>Hi,
>
>i want to update each field in a database table and increment by 10.
>
>so it will look like
>
>10, 20, 30, 40, 50
>
>if anyone can help it would be great
>

If you just needed to SQL information update, maybe an SQL command similar to
this might work...

UPDATE table SET column1 = (column1 + 10);

Lenny
--
Help a community by participating in ours!
NewsGuy.Com - http://newsguy.com/charity.asp

 

Navigation:

[Reply to this 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

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