Skip to content
Advertisement

SQL Oracle – Replace function in Where Clause

I want to use the REPLACE function in the Where clause to replace a character that I put into a input box. For example if I input R123;R321 I want it to change my input to R123','R321.

Example of my query:

I input the data with this box:

Input box

Any help would be appreciated, or if there is some other way to do it without the REPLACE function.

Advertisement

Answer

That won’t work like this, I’m afraid. You’ll have to split input value into rows, e.g.

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