Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想订购一个结果集。我想用于排序的列包含德语变音符号,如 ö、ü 和 ä。我想要这些排序的列数据和普通字母。例子:
此刻,结果集的排序如下: ABCOXYZÖ
我希望它像这样订购:ABCOÖXYZ
谢谢
从 DB2 9 开始,有一个 COLLATION_KEY 函数用于在 ORDER BY 子句中指定排序顺序:
ORDER BY COLLATION_KEY(field,...)
在运行 SQL 之前查看更改排序顺序 - 它是 STRSQL、RUNSQLSTM 或 CHGJOB 命令上的 SRTSEQ 参数。