首页 > 数据库 >activiti删除某个流程对应的实例数据sql

activiti删除某个流程对应的实例数据sql

时间:2022-12-30 15:44:31浏览次数:60  
标签:activiti WHERE INSTR act 实例 INST sql PROC ID

#根据流程key查询所有的流程实例id(历史和运行时)
SELECT GROUP_CONCAT(t.PROC_INST_ID_) FROM ( SELECT PROC_INST_ID_ FROM ACT_RU_TASK where INSTR(PROC_DEF_ID_,'diagram-03') UNION SELECT PROC_INST_ID_ FROM act_hi_actinst where INSTR(PROC_DEF_ID_,'diagram-03'))t; DELETE FROM act_hi_actinst WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_attachment WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_comment WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_detail WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_identitylink WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_identitylink WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_procinst WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_taskinst WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_hi_varinst WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_ru_event_subscr WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_ru_identitylink WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_ru_identitylink WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_ru_task WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_ru_variable WHERE INSTR('634226,634576',PROC_INST_ID_) ; DELETE FROM act_ru_execution WHERE INSTR('634226,634576',PROC_INST_ID_) ;

 

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
  TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back

标签:activiti,WHERE,INSTR,act,实例,INST,sql,PROC,ID
From: https://www.cnblogs.com/g177w/p/17015035.html

相关文章

  • SQLite 命令
    SQLite命令本章将向您讲解SQLite编程人员所使用的简单却有用的命令。这些命令被称为SQLite的点命令,这些命令的不同之处在于它们不以分号;结束。让我们在命令提示符下键入......
  • SQLite 数据类型
    SQLite 数据类型SQLite数据类型是一个用来指定任何对象的数据类型的属性。SQLite中的每一列,每个变量和表达式都有相关的数据类型。您可以在创建表的同时使用这些数据类型......
  • mysql 修改密码
    1.使用mysqladmin修改密码使用mysqladmin命令修改MySQL的root用户密码格式为:mysqladmin-u用户名-p旧密码password新密码例如(root用户,root密码,修改密码为1234):......
  • .net6 webApi IoC SqlSugar的日常使用
    .Net6WebApi使用SqlSugar1、Nuget先引入:SqlSugarCore2、NetIOC1、注入ISqlSugarClient.NET自带的IOC使用也很方便 先封装一个操作类  //建一个扩展类publ......
  • MySQL高级
    大小写规范MySQL在Windows下是大小写不敏感的,会全部转换成小写MySQL在Linux下的大小写规则:数据库名、表名、表的别名、变量名是严格区分大小写的;关键字、函数......
  • MySQL 学习 --- 隔离级别
      文章图片来自参考文章,图片非原创概述事务隔离级别可解决的问题       下面的章节将会解释脏读,不可重复度和幻读。MySQL默认的事务隔离级别是可重复读(repeata......
  • lightdb/postgresql中的MemoryContext out of memory原因分析及解决思路
    内存上下文的设计思路可以参考src/backend/utils/mmgr/README。https://www.pgcon.org/2019/schedule/attachments/514_introduction-memory-contexts.pdfhttp://www.lig......
  • MySQL 备份与恢复
    备份terminal窗口下mysqldump-h-p-u-pdb_name>路径名.sql-h主机名-p端口名-u用户名-p 用户密码db_name 数据库的名字例子#备份train数据库mysq......
  • mysql忘记root密码的解决办法
    mysql5.7mysql安装目录为/usr/local/mysql通过mysqld启动mysql服务。 /usr/local/mysql/bin/mysqld--skip-grant-tables--user=root [root@localhostbin]#/usr/local/......
  • Mssql 触发器
    INSERT触发器:向表中插入数据时被触发UPDATE触发器:修改表中数据时被触发DELETE触发器:从表中删除数据时被触发INSERT 触发器:在向目标表中插入数据后,会触发该表的INSER触......