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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -