有没有办法在DB2的update语句中使用连接?
谷歌真的让我失望了
这大致是我想要实现的目标(......除了明显的工作......)
update file1 inner join file2
on substr(file1.firstfield,10,20) = substr(file2.anotherfield,1,10)
set file1.firstfield = ( 'BIT OF TEXT' concat file2.something )
where file1.firstfield like 'BLAH%'
Run Code Online (Sandbox Code Playgroud)
干杯