Is there an alternative for the INSTR()
function used in Oracle for SQL Server.
I need to use INSTR()
with all four parameters,
INSTR(string, substring [, start_position [, nth_appearance ]])
SQL Server has an option for CHARINDEX()
, but it does not allow me to mention the 'nth appearance', it only takes 3 parameters
CHARINDEX(substring, string, start)
Is there any way I can get the exact functionality as INSTR()
?