Skip to content
Advertisement

How to write DELETE Statement with Inner Query in PostgreSQL?

The below query works fine in Oracle DB. The same query fails in Postgres DB, but the inner query works fine in Postgres DB.

I am getting syntax error for this.

Error :- [Code: 0, SQL State: 42601] ERROR: syntax error at or near “(” Position: 13 [Script position: 3109 – 3110]

How to fix this ?

Thanks.

Advertisement

Answer

use following syntax

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement