你用的什么数据库?
select ... ,
case when 尺码='M' then '3:M'
when 尺码='L' then '2:L'
when 尺码='S' then '1:S'
end as cm
from ....
在MS SQL和ORACLE中应该都是可以的,cm只不过给他取个名字吧
在生成SQL的时候进行处理:
select ...,case 尺码 when 尺码='M' then '3:M'
when 尺码='L' then '2:L'
when 尺码='S' then '1:S'
end as cm
from ....
之类的,他就会按你要来排序
如果1:S这种难看 ,就用' S',' L','M'来排