SQL基础语句
删除关联关系处理数据库
select * from T_BF_INSTANCEENTRY where 1=1 and FSTABLENAME ='t_PUR_POOrderEntry'
and fttablename='CGDD002629'
and FSID in (select fentryid from T_PUR_POORDER a
inner join T_PUR_POORDERENTRY b on b.fid = a.fid where a.FBILLNO='CGDD002629')
--查询
select * from T_BF_INSTANCEENTRY where 1=1 and FSTABLENAME ='t_PUR_POOrderEntry'and
FTTABLENAME ='T_AP_PAYABLEENTRY'and FSID in (select fentryid from T_PUR_POORDER a
inner join T_PUR_POORDERENTRY b on b.fid = a.fid where a.FBILLNO='cgdd002629')
--备份
select * into T_BF_INSTANCEENTRY_sqlbak_20230613 from T_BF_INSTANCEENTRY;
--更新
delete T_BF_INSTANCEENTRY where 1=1 and FSTABLENAME ='t_PUR_POOrderEntry'and FTTABLENAME ='T_AP_PAYABLEENTRY'and
FSID in (select fentryid from T_PUR_POORDER a inner join T_PUR_POORDERENTRY b on b.fid = a.fid
where a.FBILLNO='cgdd002629')
SQL基础语句
本文2024-09-16 18:26:40发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-22181.html