nlssort
最近更新时间: 2025-02-18 16:02:00
指定排序规则。
postgres=# create table t_nlssort(f1 integer,f2 varchar2(10));
CREATE TABLE
postgres=#
postgres=# insert into t_nlssort values(1,'腾讯');
INSERT 0 1
postgres=#
postgres=# insert into t_nlssort values(2,'深圳');
INSERT 0 1
postgres=#
postgres=# insert into t_nlssort values(3,'中国');
INSERT 0 1
postgres=# SELECT * FROM t_nlssort ORDER BY NLSSORT(f2,'NLS_SORT = SCHINESE_PINYIN_M');
f1 | f2
----+------
2 | 深圳
1 | 腾讯
3 | 中国
(1 rows)
目前tbase只能支持按拼音。