當您的 T0.name 是字符歸檔時,您應(yīng)該按如下方式替換 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
登錄后復(fù)制
以上就是在 SAP DB 中從特定月份運行 SQL 查詢的詳細內(nèi)容,更多請關(guān)注www.92cms.cn其它相關(guān)文章!