update mtl_secondary_inventories set attribute1=1
where Organization_Id IN (SELECT ood.ORGANIZATION_ID FROM org_organization_definitions ood WHERE ood.OPERATING_UNIT = 90)
and organization_id =93
and secondary_inventory_name in (
--子库存
select msi.secondary_inventory_name from mtl_secondary_inventories msi
where msi.Organization_Id IN (SELECT ood.ORGANIZATION_ID FROM org_organization_definitions ood WHERE ood.OPERATING_UNIT = 81)
and msi.attribute1='1'
and msi.Organization_Id=85
)


--查询子库存
select msi.secondary_inventory_name ,msi.organization_id,msi.description ,msi.attribute1 from mtl_secondary_inventories msi
where msi.Organization_Id IN (SELECT ood.ORGANIZATION_ID FROM org_organization_definitions ood WHERE ood.OPERATING_UNIT = 90)
and msi.attribute1='1'

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2021-05-10
  • 2022-02-20
  • 2021-12-25
猜你喜欢
  • 2021-11-28
  • 2021-06-19
  • 2021-08-17
  • 2021-08-03
  • 2022-01-07
相关资源
相似解决方案