PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

WHERE NOT EXISTS in PostgreSQL fornisce un errore di sintassi

Fai invece:

INSERT INTO live.users ("website", "age") 
SELECT 'abc', 123
WHERE NOT EXISTS (SELECT age FROM live.users WHERE age = 123);