Advertisement
Lola_D

sql 3

May 26th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. insert into school (name, country, capacity) values ('Beauxbatons Academy of Magic', 'France', 500), ('Castelobruxo', 'Brazil', 380), ('Durmstrang Institute', 'Norway', 570), ('Hogwarts School of Witchcraft and Wizardry', 'United Kingdom', 450), ('Ilvermorny School of Witchcraft and Wizardry', 'USA', 300), ('Koldovstoretz', 'Russia', 125), ('Mahoutokoro School of Magic', 'Japan', 800), ('Uagadou School of Magic', 'Uganda', 350);
  2.  
  3. update school set country = 'Sweden' where id = 3;
  4.  
  5. update school set capacity = 700 where country = 'Japan';
  6.  
  7. select name from school where name like '%Magic%';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement