Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. CREATE table documents (
  2. id INTEGER PRIMARY KEY AUTOINCREMENT,
  3. title TEXT,
  4. content TEXT,
  5. author TEXT);
  6.  
  7. INSERT INTO documents (author, title, content)
  8. VALUES ("Puff T.M. Dragon", "Fancy Stuff", "Ceiling wax, dragon wings, etc.");
  9. INSERT INTO documents (author, title, content)
  10. VALUES ("Puff T.M. Dragon", "Living Things", "They're located in the left ear, you know.");
  11. INSERT INTO documents (author, title, content)
  12. VALUES ("Jackie Paper", "Pirate Recipes", "Cherry pie, apple pie, blueberry pie.");
  13. INSERT INTO documents (author, title, content)
  14. VALUES ("Jackie Paper", "Boat Supplies", "Rudder - guitar. Main mast - bed post.");
  15. INSERT INTO documents (author, title, content)
  16. VALUES ("Jackie Paper", "Things I'm Afraid Of", "Talking to my parents, the sea, giant pirates, heights.");
  17.  
  18. SELECT * FROM documents;
  19. UPDATE documents SET author= "Jackie Draper" WHERE author="Jackie Paper";
  20. SELECT * FROM documents;
  21. DELETE FROM documents WHERE title="Things I'm Afraid Of";
  22. SELECT * FROM documents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement