oracle has a nice built-in function to execute if null, however I want to do if = 0; is there an easy way to do this?
nvl (instr (substr (ovrflo_adrs_info, instr (ovrflo_adrs_info, 'bldg') + 5), ''), Length (ziZbg (ovrflo_adrs_info, INSTR (ovrflo_adrs_info, 'zd') + 5))))
This happens as a parameter to the substr function.
If instr(substr(ovrflo_adrs_info,instr(ovrflo_adrs_info,'bldg')+5),' ') is != 0 , then I want this value, otherwise I want the value length(substr(ovrflo_adrs_info,instr(ovrflo_adrs_info,'bldg')+5))
is there an easy way to do this?
source share