You are here: Increment Optimization « PHP SQL « IT news, forums, messages
Increment Optimization

Posted by afrinspray on 02/07/06 22:13

I'm trying to optimize this situation... I have a page that has a bunch
of categories on it, each with an up and down arrow for re-ordering.
Each category has a field, intCategoryOrder, which is initially zero
for every category.

When the user first presses up or down on a category, I want to
populate the intCategoryOrder field for all categories so the first
category order is one, the second is two, etc... Is there a way to do
this in one SQL statement instead of x update statements? I'm using
MySQL 5.0.x.

Thanks,
Mike

 

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

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