Använd STÄLL IN BEGRÄNSNINGAR kommando:
Du kan också hitta det i referensdokumentationen för (till exempel) SKAPA TABELL
[ CONSTRAINT constraint_name ]
{ NOT NULL |
NULL |
CHECK ( expression ) [ NO INHERIT ] |
DEFAULT default_expr |
GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) ] |
UNIQUE index_parameters |
PRIMARY KEY index_parameters |
REFERENCES reftable [ ( refcolumn ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ]
[ ON DELETE action ] [ ON UPDATE action ] }
[ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ]
Begränsningen kan vara:
- INitialt UPPHÖDET | INITIALT OMEDELBART
- FÖRSTÄNKBAR | EJ UPPSKJÄNSLIG