HI all,
Can someone explain this sorting issue?
we are using V8 on Windows, but database *might* have been created
with V7 (I can find out if it really matters)
I have a table with one column, data VARCHAR(255) . It contains three
values : 1729_at, 1773_at and 177_at.
If I issue this SQL:
SELECT * FROM mytable ORDER BY data
I get:
1729_at
177_at
1773_at
This seems to imply that in the active collating sequence, whatever it
happens to be, the '_' character comes before the '3' character. Am I
right? Why is that? In ASCII (and therefore also in UTF-8, I think)
the 3 comes before the _. In EBCDIC, the _ comes before the 3, but is
this at all possible, that someone created the database using EBCDIC
on Windows?
If I do the same sort in Java (uses Unicode) I get the right result,
ie
1729_at
1773_at
177_at
What am I missing?
Thanks,
Alejandrina
Can someone explain this sorting issue?
we are using V8 on Windows, but database *might* have been created
with V7 (I can find out if it really matters)
I have a table with one column, data VARCHAR(255) . It contains three
values : 1729_at, 1773_at and 177_at.
If I issue this SQL:
SELECT * FROM mytable ORDER BY data
I get:
1729_at
177_at
1773_at
This seems to imply that in the active collating sequence, whatever it
happens to be, the '_' character comes before the '3' character. Am I
right? Why is that? In ASCII (and therefore also in UTF-8, I think)
the 3 comes before the _. In EBCDIC, the _ comes before the 3, but is
this at all possible, that someone created the database using EBCDIC
on Windows?
If I do the same sort in Java (uses Unicode) I get the right result,
ie
1729_at
1773_at
177_at
What am I missing?
Thanks,
Alejandrina
Comment