You are here: Re: ordering an int column « MsSQL Server « IT news, forums, messages
Re: ordering an int column

Posted by Robert Klemme on 09/26/05 18:13

Rick wrote:
> I've created a clustered two column index on a table where the second
> column is an integer value. When the first column is the same,
> instead of ordering in numerical order it is ordering
> 1,10,100,2,20,200 etc. How can I change the behaviour to order the
> data in numerical order?

Did you actually declare the second column to be of type int or is it a
varchar and values represent integers? If it's the latter then I wouldn't
be surprised...

robert

 

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

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