sql - Replacing Strings in Oracle 8i Query -


i've got table in oracle 8i

value  | timestamp kkq    | 10:00 kvkk   | 11:00 kmpe   | 12:00 ppkkpe | 13:00 

and need replace kv v, km m, pe r ,pp n , p l when querying these values.

what's best way it? problem see can have combination of strings in value column... values can have there are: kk, q, kv, v, km, m, pe, r, pp, n, p, l.

select    replace(   replace(   replace(   replace(<input>,      'kv', 'v'),     'km', 'm'),     'pe', 'r'),     'pp', 'n')   .... 

Comments

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -