MAXIMO批量删除应用程序

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;
posted @ 2013-09-09 22:36  Oo笨蛋  阅读(385)  评论(0编辑  收藏  举报