Oracle Sql Check Constraint != other table
问题 I want to include a check constraint on a table between the primary key of the latter and the primary key of another table and insert! = Between the two, how can i do it? I've been tempted like this: CREATE TABLE RESPONSABILE( ID_RESP CHAR(10) REFERENCES UTENTE(ID_USER) PRIMARY KEY, CODICE_FISCALE VARCHAR(16) NOT NULL UNIQUE, NOME VARCHAR(15) NOT NULL, COGNOME VARCHAR(15) NOT NULL, CONSTRAINT CK_FI CHECK (REGEXP_LIKE(CODICE_FISCALE,'^[A-Z]{6}[\d+]{2}[ABCDEHLMPRST]{1}[\d+]{2}([A-Z]{1}[\d+]{3})