Suppose I have a column value as aaa\'gh it will throw error in oracle saying sql command not properly ended.
aaa\'gh
My question is if I don\'t know how many <
My simple approach with this problem, was always to just use
replace(string, '''', '''''')
but Lalit Kumar B solution, seems more sophisticated