Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysql> insert into school (name, country, capacity)
- -> VALUES
- -> ('Ilvermorny School of Witchcraft and Wizardry', 'USA', '300'),
- -> ('Koldovstoretz', 'Russia', '125'),
- -> ('Mahoutokoro School of Magic ', 'Japan', '800'),
- -> ('Uagadou School of Magic ', 'Uganda', '350');
- Query OK, 4 rows affected (0.00 sec)
- Records: 4 Duplicates: 0 Warnings: 0
- mysql> UPDATE school SET country='Sweden' WHERE id='4';
- Query OK, 1 row affected (0.00 sec)
- Rows matched: 1 Changed: 1 Warnings: 0
- mysql> UPDATE school SET capacity=700 WHERE id='7';
- Query OK, 1 row affected (0.01 sec)
- Rows matched: 1 Changed: 1 Warnings: 0
- mysql> delete from school where name LIKE '%of Magic%';
- Query OK, 3 rows affected (0.00 sec)
- mysql> select * from school;
- +----+----------------------------------------------+----------+----------------+
- | id | name | capacity | country |
- +----+----------------------------------------------+----------+----------------+
- | 1 | Hogwarts School of Witchcraft and Wizardry | 450 | United Kingdom |
- | 3 | Castelobruxo | 380 | Brazil |
- | 4 | Durmstrang Institute | 570 | Sweden |
- | 5 | Ilvermorny School of Witchcraft and Wizardry | 300 | USA |
- | 6 | Koldovstoretz | 125 | Russia |
- +----+----------------------------------------------+----------+----------------+
- 5 rows in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement