Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create table user (
- name varchar(14) not null.
- id int(11) auto_increment;
- CREATE TABLE questions (
- question_id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) references user(id),
- title varchar(255),
- content text,
- PRIMARY KEY (question_id);
- CREATE TABLE answers (
- answer_id int(11) NOT NULL AUTO_INCREMENT,
- question_id int(11) REFERENCES questions(question_id),
- content text,
- PRIMARY KEY (answer_id);
Add Comment
Please, Sign In to add comment