Skip to content
Advertisement

Oracle 12c updating multiple rows with the same data

I’m trying to write a script that pulls out all of the distinct ‘words’ in a string and saves them in another field. I’ve gotten the process to work in Oracle 19c (though any advice is welcome) but when I run the script in 12c the first record is correct but all the following records have the same data and I’m not sure what I’m doing wrong.

Thanks!

output:

expected:

Advertisement

Answer

I don’t know what the problem is, but here is an alternative solution that avoids the CPU penalty of using REGEXP:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement