SHARE
TWEET

Untitled

a guest Oct 18th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mysql> INSERT INTO school (name, country, capacity)
  2.     -> VALUES
  3.     -> ('Beauxbatons Academy of Magic', 'France', 550),
  4.     -> ('Castelobruxo', 'Brazil', 380),
  5.     -> ('Durmstrang Institute', 'Norway', 570),
  6.     -> ('Hogwarts School of Witchcraft and Wizardry', 'United Kingdom', 450),
  7.     -> ('Ilvermorny School of Witchcraft and Wizardry','USA',300),
  8.     -> ('Koldovstoretz','Russia',125),
  9.     -> ('Mahoutokoro School of Magic','Japan',800),
  10.     -> ('Uagadou School of Magic','Uganda',350);
  11.    
  12. mysql> UPDATE school SET country='Sweden' WHERE id=3;
  13.  
  14. mysql> UPDATE school SET capacity=700 WHERE id=7;
  15.  
  16. mysql> DELETE FROM school WHERE name LIKE '%Magic%';
  17.  
  18. +----+----------------------------------------------+----------+----------------+
  19. | id | name                                         | capacity | country        |
  20. +----+----------------------------------------------+----------+----------------+
  21. |  2 | Castelobruxo                                 |      380 | Brazil         |
  22. |  3 | Durmstrang Institute                         |      570 | Sweden         |
  23. |  4 | Hogwarts School of Witchcraft and Wizardry   |      450 | United Kingdom |
  24. |  5 | Ilvermorny School of Witchcraft and Wizardry |      300 | USA            |
  25. |  6 | Koldovstoretz                                |      125 | Russia         |
  26. +----+----------------------------------------------+----------+----------------+
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top