update MT_EQ_EQUIPALLOCATION
set gdzch0 = (select distinct puborgcode ||
substr(ygdzch, 6, length(ygdzch) - 5)
from mt_pb_org t1, MT_EQ_EQUIPALLOCATION t2
where t1.orgcode = t2.drycdm)
where exists
(select distinct puborgcode || substr(ygdzch, 6, length(ygdzch) - 5)
from mt_pb_org t1, MT_EQ_EQUIPALLOCATION t2
where t1.orgcode = t2.drycdm)
Oracle 的update......where......子句和Sql Server 是不一样的
本文详细解析了Oracle数据库中一种特殊的更新语句用法,即使用子查询来更新表中的字段,并对比了其与SqlServer中类似操作的区别。

被折叠的 条评论
为什么被折叠?



