Projektutvecklingslab/database.sql

12 lines
272 B
MySQL
Raw Normal View History

2024-02-14 18:29:54 +01:00
CREATE TABLE IF NOT EXISTS Respondants (
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),
FOREIGN KEY (name) REFERENCES Respondants(name)
);