You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
412 B

3 years ago
  1. -- create table authors (
  2. -- id INTEGER PRIMARY KEY NOT NULL,
  3. -- name VARCHAR(15)
  4. -- );
  5. -- create table books (
  6. -- id INTEGER PRIMARY KEY NOT NULL,
  7. -- title VARCHAR(15) NOT NULL,
  8. -- author_id INTEGER NOT NULL,
  9. -- FOREIGN KEY(author_id) REFERENCES authors(id)
  10. -- );
  11. INSERT INTO authors (name) VALUES ('Jane Austen');
  12. INSERT INTO books (title, author_id) VALUES ('Pride and Prejudice', 1);