Skip to content
Advertisement

Tag: unique-constraint

Nasty sql error(POSTGRES) “There is no unique constraint matching given keys for referenced table…”

EDIT: tables have been translated from my language to english i’ve changed te reference of foreign key in table Comment to “Utente” -> “User” Hi everyone i’m trying to build a small review system in sql as follows. Every user can comment on some item(could be anything) and any other user can answer any comment. The Admin of the website

Advertisement