在 SAP DB 中从特定月份运行 SQL 查询

admin 阅读:70 2024-05-29

在 sap db 中从特定月份运行 sql 查询

当您的 T0.name 是字符归档时,您应该按如下方式替换 Order By -

order by
case when cast(left (T0.Name,2) as int)>=8
   then cast(left (T0.Name,2) as int)-8
   else cast(left (T0.Name,2) as int)+4
 end
声明

1、部分文章来源于网络,仅作为参考。
2、如果网站中图片和文字侵犯了您的版权,请联系1943759704@qq.com处理!