PostgreSQL ORDER BY issue - natural sort

前端 未结 7 1283
日久生厌
日久生厌 2020-12-01 16:38

I\'ve got a Postgres ORDER BY issue with the following table:

em_code  name
EM001    AAA
EM999    BBB
EM1000   CCC

To insert a

相关标签:
7条回答
  • 2020-12-01 17:15

    I thought about another way of doing this that uses less db storage than padding and saves time than calculating on the fly.

    https://stackoverflow.com/a/47522040/935122

    I've also put it on GitHub

    https://github.com/ccsalway/dbNaturalSort

    0 讨论(0)
提交回复
热议问题