14 lines
323 B
SQL
14 lines
323 B
SQL
CREATE TABLE IF NOT EXISTS Respondents (
|
|
name VARCHAR(255) PRIMARY KEY
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS Answers (
|
|
answerOne INT,
|
|
answerTwo INT,
|
|
answerThree INT,
|
|
answerFour INT,
|
|
name VARCHAR(255),
|
|
FOREIGN KEY (name) REFERENCES Respondents(name)
|
|
);
|
|
|
|
INSERT INTO Respondents (name) VALUES ('user1');
|