Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DB2 :: RE: insert the same records but chancing a specific value

$
0
0
Author: Rohit Umarjikar
Posted: Mon May 02, 2016 10:45 pm (GMT 5.5)

Code:
      update table a
      set a.col1 =
           ( select replace(b.col1,'KKK','ZZZ') from table b
             where a.key = b.key
           )

_________________
Regards,
Rohit Umarjikar
"Some things Man was never meant to know. For everything else, there's Google"


Viewing all articles
Browse latest Browse all 9405

Trending Articles