How to replace the special character $owner with \"hr\" and $table_name with \"hr\" and $constraint_name with \"scma_constraint\" in dynamic. Change
\"alter ta
The replaceAll method on String should do the trick. First store all the key-value pairs in a Map and then do something as follows:
for each entry in the map myString.replaceAll(entry.key, entry.value)
Should be straigtforward to implement.