Excel中:
自定义序列排序
SQL中:
SQLSTATE 42601: 字符、标记或子句无效或丢失
db2 sql error sqlcode=-104 sqlstate=42601
机构名称:
机构一部,
机构二部,
机构三部
参考:http://www.cnblogs.com/lanmiao/articles/2216580.html
1.按月份排序
SELECT *
FROM 表
ORDER BY CAST(月份列 as int)
2.按汉语数字排序
SELECT *
FORM 表
ORDER BY CHARINDEX (月份列,N'一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月')
是汉字的话不可能按ASCII码排序。