Oracle DELETE statement with subquery factoring

前端 未结 3 1817
一整个雨季
一整个雨季 2021-01-02 04:25

Trying to do this (works in SQL Server):

WITH X AS (), Y AS (), Z AS ()
DELETE FROM TBL
WHERE TBL.ID IN (SELECT ID FROM Z);

This works in O

3条回答
  •  余生分开走
    2021-01-02 05:03

    Well, at a minimum, you need to have all of the aliased queries appear in the FROM statement somehow. I don't know if there are more issues, but that is a must (and I believe that 00928 is the error that happens when you don't).

提交回复
热议问题