【发布时间】:2010-11-15 12:15:28
【问题描述】:
有没有办法在 DB2 的更新语句中使用连接?
Google 在这方面真的让我失望了
这大致就是我想要实现的目标(......除了明显工作......)
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%'
干杯
【问题讨论】: