T
Timo Göttig
Hello NG,
how can I create a column with foreign keys in a new table with SQL
statements?
According to my prof this is the right way:
CREATE TABLE Student
(
Matr_No int PRIMARY KEY,
Name varchar(20) NOT NULL,
Forename varchar(20),
Exam_No int FOREIGN KEY references Exam(Exam_No)
);
Access displays an error message "Syntax Error in CONSTRAINT clause".
Unfortunately Access Online Help did not help me to solve this problem.
Can you please tell me the correct statements in Access 2002?
Thanks in advance & best regards from Germany,
Timo
how can I create a column with foreign keys in a new table with SQL
statements?
According to my prof this is the right way:
CREATE TABLE Student
(
Matr_No int PRIMARY KEY,
Name varchar(20) NOT NULL,
Forename varchar(20),
Exam_No int FOREIGN KEY references Exam(Exam_No)
);
Access displays an error message "Syntax Error in CONSTRAINT clause".
Unfortunately Access Online Help did not help me to solve this problem.
Can you please tell me the correct statements in Access 2002?
Thanks in advance & best regards from Germany,
Timo