Referential Integrity Constraints is the attributes in one relation (table) referring to attributes of another relation(table), which should be primary key of the referential relation(table).
The attributes, which references primary key of another relation(table) as referential foreign key, is either null or exists in the referential relation(table). Also, the attributes being referenced in the relation(table) is the primary key.
专业号 is referential foreign key in 学生 relation(table), but 专业号 is the primary key being referenced in 专业 relation(table).