postgres – where in (list) – column does not exist

Use single quotes for string constants:

DELETE FROM user_job_titles
    WHERE id IN ('c836d018-1d12-4507-a268-a4d80d6d3f54',
                 'd0961a90-7d31-4c4c-9c1b-671115e3d833',
                 '62dda420-6e62-4017-b41d-205c0aa82ead'
                );

Double quotes are an escape character used with table and column names. Hence the error.

Leave a Comment