首页 > 文章列表 > 在 SAP DB 中从特定月份运行 SQL 查询

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

355 2023-08-28

当您的 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