mysql - Modifing select query to delete query -
the following select query works fine:
select * jbpm_job job job.action_ in (select id_ jbpm_action actionexpression_ '%#{reminderaction.addasyncprocessreminder%warning%');
however, when try delete rows retrieved here, fails
delete jbpm_job job job.action_ in (select id_ jbpm_action actionexpression_ '%#{reminderaction.addasyncprocessreminder%warning%');
what wrong here?
the error message is:
error 1064 (42000): have error in sql syntax; check manual corresponds mysql server version right syntax use near 'job job.action_ in (select id_ jbpm_action actionexpression_ li' @ line 1
you need specify deleting alias table, use:
delete job jbpm_job job job.action_ in (select id_ jbpm_action actionexpression_ '%#{reminderaction.addasyncprocessreminder%warning%');
Comments
Post a Comment