开发者

Basic text replacement in Informatica

开发者 https://www.devze.com 2023-02-06 14:55 出处:网络
I have data in informatica which I would like 开发者_如何学Pythonto do a textual search/replace.

I have data in informatica which I would like 开发者_如何学Pythonto do a textual search/replace.

I have a column in the source where records are in "12M" format and I want to replace that "M" and replace it with "1000000".

For example, "12M" would be come a numeric "12000000"


IIF(
  SUBSTR(Column3,-1,1)='M',
  TO_DECIMAL(SUBSTR(Column3,1,(LENGTH(Column3)-1)))*1000000,
  TO_DECIMAL(Column3)
)

this is the correct way to find the desire results

0

精彩评论

暂无评论...
验证码 换一张
取 消