点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我需要根据以下情况填...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我需要根据以下情况填...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
大家好,
我需要根据以下情况填充日期。
我得到的源数据是" 2年11个月17天"。 我必须使用sysdate()-2年,11个月,17天进行计算。
高度赞赏您对此的想法。
Dirk Venken -仅供参考。
谢谢
Vinay
您好 Vinay Kumar , p>
您也可以尝试以下逻辑。
#cast(word_ext(replace_substr(" Date",'year(s)',''),1,','),'int')-年 #cast(word_ext(replace_substr(" Date",'month(s)',''),2,','),'int')-月 #cast(word_ext(replace_substr(" Date",'day(s)',``),3,','),'int')-天
查询代码:
< pre> add_months(sysdate()-cast(word_ext(replace_substr(" Date",'day(s)',''),3,','),'int'), ((cast(word_ext(replace_substr(" Date",'year(s)',``),1,','),'int')* -12))+(cast(word_ext(replace_substr(" Date" ,'month(s)',''),2,','),'int')*-1))输出:
关于
Akhilesh 基兰。
一周热门 更多>