SHARE
TWEET

Untitled

a guest Oct 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INSERT INTO wild_db_quest.school (name, country, capacity)
  2. VALUES ('Beauxbatons Academy of Magic', 'France', 550),
  3. ('Castelobruxo', 'Brazil', 380),
  4. ('Durmstrang Institute', 'Norway', 570),
  5. ('Hogwarts School of Witchcraft and Wizardry', 'United Kingdom', 450),
  6. ('Ilvermorny School of Witchcraft and Wizardry', 'USA', 300),
  7. ('Koldovstoretz', 'Russia', 125),
  8. ('Mahoutokoro School of Magic', 'Japan', 800),
  9. ('Uagadou School of Magic', 'Uganda', 350);
  10.  
  11.  
  12. UPDATE wild_db_quest.school SET country ='Sweden' WHERE id=3;
  13.  
  14.  
  15. UPDATE wild_db_quest.school SET capacity =700 WHERE id=7;
  16.  
  17.  
  18. DELETE FROM wild_db_quest.school WHERE name like '%magic%';
  19.  
  20. mysql> SELECT * from school;
  21. +----------------------------------------------+----------+----------------+----+
  22. | name                                         | capacity | country        | id |
  23. +----------------------------------------------+----------+----------------+----+
  24. | Castelobruxo                                 |      380 | Brazil         |  2 |
  25. | Durmstrang Institute                         |      570 | Sweden         |  3 |
  26. | Hogwarts School of Witchcraft and Wizardry   |      450 | United Kingdom |  4 |
  27. | Ilvermorny School of Witchcraft and Wizardry |      300 | USA            |  5 |
  28. | Koldovstoretz                                |      125 | Russia         |  6 |
  29. +----------------------------------------------+----------+----------------+----+
  30. 5 rows in set (0.00 sec)
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