Unix Technical Forum

ORDER BY and case DB2 8.1.5 LINUX

This is a discussion on ORDER BY and case DB2 8.1.5 LINUX within the DB2 forums, part of the Database Server Software category; --> Apparently the order for mixed case is a, A, b, B ... which is somewhat more than a little ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:43 AM
Bob Stearns
 
Posts: n/a
Default ORDER BY and case DB2 8.1.5 LINUX

Apparently the order for mixed case is a, A, b, B ... which is somewhat
more than a little surprising. How do I make it the ASCII sort order (A,
B, ... Z, a, b, ... Z)? Where is the sort order defined in the (huge)
manual set?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:43 AM
Jan M. Nelken
 
Posts: n/a
Default Re: ORDER BY and case DB2 8.1.5 LINUX

Bob Stearns wrote:
> Apparently the order for mixed case is a, A, b, B ... which is somewhat
> more than a little surprising. How do I make it the ASCII sort order (A,
> B, ... Z, a, b, ... Z)? Where is the sort order defined in the (huge)

**********************| - THIS SHOULD BE z
> manual set?


Term you want to search online documentation (available at:
http://publib.boulder.ibm.com/infoce...help/index.jsp)
is collating sequence

User defined collating sequences are described in Application Development Guide:
{Programming Client Applications).

Note that collating sequences are defined at CREATE DATABASE time and cannot be
further changed.

Jan M. Nelken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 05:43 AM
Tonkuma
 
Posts: n/a
Default Re: ORDER BY and case DB2 8.1.5 LINUX

If it is difficult to re-create a Database or you want temporary change
the order, please try:
ORDER BY HEX(order_column)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:43 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com