zgray

MAXIMO批量删除应用程序

  1. declare
  2. cursor c_data is
  3. select * from maxapps
  4. where description in (\'卷包点检汇总表\',\'动力工单汇总查询\',\'设备运行汇总\');
  5. c_row c_data%rowtype;
  6. begin
  7. for c_row in c_data loop
  8. delete from maxapps where app=c_row.app;
  9. delete from maxpresentation where app=c_row.app;
  10. delete from sigoption where app=c_row.app;
  11. delete from applicationauth where app=c_row.app;
  12. delete from maxlabels where app=c_row.app;
  13. delete from maxmenu where moduleapp=c_row.app and menutype !=\'MODULE\';
  14. delete from maxmenu where moduleapp=c_row.app and elementtype=\'APP\' and keyvalue=c_row.app;
  15. end loop;
  16. end;

分类:

技术点:

相关文章:

猜你喜欢
  • 2021-07-21
  • 2022-02-08
  • 2021-07-24
相关资源
相似解决方案