sillyql / tests / test-2.txt
test-2.txt
Raw
# simple test, duplicates
CREATE friends 5 string string bool int string name vibe is_cool distance town
INSERT INTO friends 7 ROWS
Izzy Edgy true 1000 Ann_Arbor
Izzy Funny false 1000 Ann_Arbor
Sam Cool true 30 Ann_Arbor
Tyler Nice true 9000 Mt_Clemens
Tyler Mean false 400 Mt_clemens
Bri Fun false 100 Ann_Arbor
Jack Edgy true 1000 AnnArbor
PRINT FROM friends 3 name vibe town ALL
# comment
DELETE FROM friends WHERE name = Izzy
DELETE FROM friends WHERE name = TYLER
INSERT INTO friends 3 ROWS
Brian Smart true 1000 Ann_Arbor
Abby Loud false 10 Ann_Arbor
Ben Scary false 10000 Los_Angeles
PRINT FROM friends 2 name vibe WHERE distance < 300
REMOVE friends
QUIT