Created
June 16, 2017 14:50
-
-
Save rostyslav-y/b008286bd1f5688573962d85dd185562 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE person ( | |
_id INTEGER NOT NULL PRIMARY KEY, | |
first_name TEXT NOT NULL, | |
last_name TEXT NOT NULL, | |
phone TEXT | |
); | |
select_people: | |
SELECT * | |
FROM person; | |
insert_person: | |
INSERT INTO person VALUES (?, ?, ?, ?); | |
update_person: | |
UPDATE person | |
SET first_name = ?, last_name = ?, phone = ? | |
WHERE _id = ?; | |
delete_person: | |
DELETE FROM person | |
WHERE _id = ?; | |
delete_person_all: | |
DELETE FROM person; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment