Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE table documents (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- title TEXT,
- content TEXT,
- author TEXT);
- INSERT INTO documents (author, title, content)
- VALUES ("Puff T.M. Dragon", "Fancy Stuff", "Ceiling wax, dragon wings, etc.");
- INSERT INTO documents (author, title, content)
- VALUES ("Puff T.M. Dragon", "Living Things", "They're located in the left ear, you know.");
- INSERT INTO documents (author, title, content)
- VALUES ("Jackie Paper", "Pirate Recipes", "Cherry pie, apple pie, blueberry pie.");
- INSERT INTO documents (author, title, content)
- VALUES ("Jackie Paper", "Boat Supplies", "Rudder - guitar. Main mast - bed post.");
- INSERT INTO documents (author, title, content)
- VALUES ("Jackie Paper", "Things I'm Afraid Of", "Talking to my parents, the sea, giant pirates, heights.");
- SELECT * FROM documents;
- UPDATE documents SET author= "Jackie Draper" WHERE author="Jackie Paper";
- SELECT * FROM documents;
- DELETE FROM documents WHERE title="Things I'm Afraid Of";
- SELECT * FROM documents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement