Utiliser la Clé Primaire Composite en tant que Clé Étrangère

Comment puis-je utiliser une clé primaire composite comme une clé étrangère? Il ressemble à une tentative de ma part ne fonctionne pas.

create table student
(
student_id varchar (25) not null ,
student_name varchar (50) not null ,
student_pone int ,
student_CNIC varchar (50),
students_Email varchar (50),
srudents_address varchar(250),
dept_id varchar(6),
batch_id varchar(4),
FOREIGN KEY (dept_id) REFERENCES department(dept_id),
FOREIGN KEY (batch_id) REFERENCES batch(batch_id),
CONSTRAINT pk_studentID PRIMARY KEY (batch_id,dept_id,student_id) )

create table files
(
files_name varchar(50) not null ,
files_path varchar(50),
files_data varchar(max),
files_bookmarks xml ,
FOREIGN KEY (pk_studentID ) REFERENCES student(pk_studentID ),
CONSTRAINT pk_filesName PRIMARY KEY (files_name) )
Est-il question?
Comment Utiliser la Clé Primaire Composite en tant que Clé Étrangère
Bellora j'ai ajouté la question.

OriginalL'auteur comsian | 2012-05-12