You are here: Re: SQL2005 collation vs Oracle « MsSQL Server « IT news, forums, messages
Re: SQL2005 collation vs Oracle

Posted by DA Morgan on 10/01/31 11:47

Alexander Kuznetsov wrote:
> Latin1_General_CS_AS will solve some problems, but not all:
>
> SQL Server:
>
> CREATE TABLE t1(c1 CHAR(10) COLLATE Latin1_General_CS_AS NOT NULL);
> INSERT INTO t1 VALUES('AAA');
> INSERT INTO t1 VALUES('A_A');
>
> SELECT * FROM T1 order by c1;
>
> c1
> ----------
> A_A
> AAA
>
> (2 row(s) affected)
>
> drop table t1;
>
> The same script in Oracle running on UNIX returns rows in a different
> order:
>
> C1
> ----------
> AAA
> A_A
> 2 rows selected
>

Default tables in Oracle, by definition, are heap tables. Expecting
a specific return ordering of rows, unless you explicitly specify
ORDER BY makes no sense.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org

 

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

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