Use a replace function instead of the case statement.
Code:select replace('1.2.10.00.12','0.00.','-') from dual
I am new to oracle sql. The data in one of the columns is
When i find "0.00.", i want to replace it with hyphen(-). The output should beCode:1.2.10.00.12
I tried the following case statement:Code:1.2.1-12
I am not getting the required output. Please help me in this.Code:case column when '0.00.' then - else column end alias_name
Use a replace function instead of the case statement.
Code:select replace('1.2.10.00.12','0.00.','-') from dual
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks