Home  >  Q&A  >  body text

java - oracle对汉字字段按照拼音排序的函数和sql语句是什么?

除了order By nlssort(colname,'NLS_SORT=SCHINESE_PINYIN_M')外,还有其他的方法或函数吗?

巴扎黑巴扎黑2743 days ago613

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:54:43

    If you don’t use Oracle’s own NLS sorting function, you can add a Pinyin field to the table, assign the value yourself when inserting the record, and then sort according to the Pinyin field.

    This method is less flexible and requires the sorting field to be relatively fixed.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:54:43

    Link description
    please refer to it

    reply
    0
  • Cancelreply