I'm trying to replicate the behavior of the STUFF() function from Transact SQL in Oracle. I assume both the CONCAT and SUBSTR functions will be involved, but I can't figure out a clever way to do it without writing too much code.
Does anyone know a fancy way to achieve this?
As there's no such built-in function, as you said - you'll have to write one for your own, using concatenation and
substrfunction. Something like this:(Simulated using STUFF T-SQL documentation)