daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. create table user (
  2.  name varchar(14) not null.
  3.  id int(11) auto_increment;
  4.  
  5. CREATE TABLE questions (
  6.  question_id int(11) NOT NULL AUTO_INCREMENT,
  7.  user_id int(11) references user(id),
  8. title varchar(255),
  9. content text,
  10. PRIMARY KEY (question_id);
  11.  
  12. CREATE TABLE answers (
  13. answer_id int(11) NOT NULL AUTO_INCREMENT,
  14. question_id int(11) REFERENCES questions(question_id),
  15. content text,
  16. PRIMARY KEY (answer_id);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top