-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.q
More file actions
30 lines (24 loc) · 666 Bytes
/
test.q
File metadata and controls
30 lines (24 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- CREATE TABLE repos (
-- id INTEGER PRIMARY KEY AUTOINCREMENT,
-- full_name TEXT NOT NULL,
-- description TEXT,
-- url TEXT NOT NULL,
-- stars INTEGER DEFAULT 0
-- );
-- INSERT INTO repos (full_name, description, url, stars) VALUES (
-- 'square/retrofit2',
-- 'Another HTTP Client for Android',
-- 'http://github.com/square/retrofit2',
-- 310000
-- );
-- SELECT * FROM repos
-- WHERE full_name = 'square/retrofit';
-- SELECT * FROM repos
-- WHERE stars > 100000;
-- SELECT * FROM repos
-- ORDER BY id DESC;
-- UPDATE repos
-- SET stars = 31002
-- WHERE full_name = 'square/retrofit';
DELETE FROM repos
WHERE full_name = 'square/retrofit2';