阅读背景:

在django(postgres后端)中按数字字符串排序查询结果

来源:互联网 

I have a table with a name (varchar) field that only holds numeric string and I want to order my queries by this field. But name fields are being ordered by alphabetically but I want them to be ordered numerically. For instance if I get 1 2 200 100 as name fields values, It is being ordered like 1 100 2 200 but I need them to be 1 2 100 200.I have a table with a name (varchar) field that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: