-
-
Save codecademydev/9c56338aa42c41e7fb48cb135addb317 to your computer and use it in GitHub Desktop.
Codecademy export
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 friends( | |
id INTEGER, | |
name TEXT, | |
birthday DATE | |
); | |
INSERT INTO friends(id,name,birthday) | |
VALUES(1,'Ororo Munroe', '1940-05-30'); | |
INSERT INTO friends (id ,name,birthday) | |
VALUES(2,'samir','1987-06-2'); | |
INSERT INTO friends (id,name,birthday) | |
VALUES(3,'shrief','1988-09-3'); | |
UPDATE friends | |
SET name = 'Storm' | |
WHERE id = 1; | |
SELECT * FROM friends; | |
ALTER TABLE friends | |
ADD COLUMN email TEXT; | |
SELECT * FROM friends; | |
UPDATE friends | |
SET email = 'storm@codecademy.com' | |
WHERE id = 1; | |
UPDATE friends | |
SET email = 'eng.samirgalal24@gmail.com' | |
WHERE id = 2; | |
UPDATE friends | |
SET email = 'Samir_galal24@yahoo.com' | |
WHERE id= 3; | |
SELECT * FROM friends; | |
DELETE FROM friends | |
WHERE name= 'samir'; | |
SELECT* FROM friends; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment