sql 将部门间部门100更新为库存dpt

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 将部门间部门100更新为库存dpt相关的知识,希望对你有一定的参考价值。

select * 
from vw_ce_ims_items
--where ItemID = 826112425000404310
--where ParentIMSItemID = 826901296000385570
where ItemID IN (select childitemId from ims_associations where ParentItemID =826901296000385570)

select * 
from vw_ce_dms_transactions
where uid=826112425000404310

where IPN = 826901296000385570

select *
from ims_associations
where ChildItemID = 826112425000404310


select *
from ims_associations
where ParentItemID=826901296000385570

commit

begin tran
delete from ims_associations
where ParentItemID= 826901295001728860
and ChildItemID in (
826112425000404367,
826112425000404366,
826112425000404365,
826112425000404364,
826112425000404363,
826112425000404362,
826112425000404361,
826112425000404360,
826112425000404359,
826112425000404358,
826112425000404315,
826112425000404314,
826112425000404313,
826112425000404312,
826112425000404311,
826112425000404310,
826112425000404309,
826112425000404308,
826112425000404307,
826112425000404306,
826112425000404305,
826112425000404304,
826112425000404303,
826112425000404302
)

以上是关于sql 将部门间部门100更新为库存dpt的主要内容,如果未能解决你的问题,请参考以下文章

棘手的 sql 查询 - 寻找替代供应商(关系部门)

freemarker 循环了两个list

oracle PL/SQL语句题目求教!

SQL用他们部门的平均工资更新员工的工资

SQL Server的四个查询语句,题目在内容里

orcale将hiredate>1983-01-01且sal<3000的员工加200工资,sal>3000的加100,用一个SQL写。