Projektutvecklingslab/database.sql

15 lines
323 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
);
2024-02-14 18:36:13 +01:00
INSERT INTO Respondents (name) VALUES ('user1');