Projektutvecklingslab/database.sql

14 lines
322 B
MySQL
Raw Normal View History

2024-02-14 18:35:44 +01:00
CREATE TABLE IF NOT EXISTS Respondents (
2024-02-14 17:50:32 +01:00
name VARCHAR(255) PRIMARY KEY
);
2024-02-14 18:29:54 +01:00
CREATE TABLE IF NOT EXISTS Answers (
answerOne INT,
answerTwo INT,
answerThree INT,
answerFour INT,
2024-02-14 17:50:32 +01:00
name VARCHAR(255),
2024-02-14 18:35:44 +01:00
FOREIGN KEY (name) REFERENCES Respondents(name)
2024-02-14 18:32:05 +01:00
);
INSERT INTO Respondants (name) VALUES ('user1');