首頁  >  文章  >  資料庫  >  在 SAP DB 中從特定月份執行 SQL 查詢

在 SAP DB 中從特定月份執行 SQL 查詢

王林
王林轉載
2023-08-30 13:53:101121瀏覽

在 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

以上是在 SAP DB 中從特定月份執行 SQL 查詢的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除