17,380
社区成员
发帖
与我相关
我的任务
分享update T_BD_MaterialInventory a
set a.funitid=(select b.fbaseunit
from T_BD_Material b
where b.fid=a.fmaterialid
and b.fbaseunit <> a.funitid
and rownum = 1)这个应该是可以的
[/quote]大哥 别走 决战到天亮啊 必须搞出来啊 不能打空炮弹[/quote]
仔细看看啊,我这个改过了哎呀,最后加了个rownum=1啊,你自己试试
[/quote]大哥 别走 决战到天亮啊 必须搞出来啊 不能打空炮弹
update T_BD_MaterialInventory a
set a.funitid=(select b.fbaseunit
from T_BD_Material b
where b.fid=a.fmaterialid
and b.fbaseunit <> a.funitid )