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