我尝试通过 Pentaho Job 中的 SQL 脚本执行以下删除操作,我收到错误为 Unknown table 'a' in MULTI DELETE
. 有人可以阐明这一点。还有其他方法可以解决这个问题吗?
DELETE a.* FROM pm_report.PM_CONCERTS_GQV_REPORT_TEST a
WHERE EXISTS
(SELECT 1 FROM pm_report.PM_CONCERTS_GQV_REPORT_TEST_3 b WHERE b.TM_EVENT_ID=a.TM_EVENT_ID
GROUP BY b.TM_EVENT_ID)