text quete3 msql

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text quete3 msql相关的知识,希望对你有一定的参考价值。


INSERT INTO school (name, country, capacity) 
VALUES 
('Beauxbatons Academy of Magic', 'France', 550), 
('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);


UPDATE  school SET country='Sweden' WHERE name ='Castelobruxo';

UPDATE  school SET capacity=700 WHERE name LIKE 'Mahoutoko%';

DELETE * FROM school WHERE name LIKE '%Magic%';

+----+-----------------------------------------------+----------+----------------+
| id | name                                          | capacity | country        |
+----+-----------------------------------------------+----------+----------------+
|  1 | Hogwarts School of Witchcraft and Wizardry    |      400 | United Kingdom |
|  3 | Castelobruxo                                  |      380 | Sweden         |
|  4 | Durmstrang Institute                          |      570 | Norway         |
|  5 | Hogwarts School of Witchcraft and Wizardry    |      450 | United Kingdom |
|  6 | Ilvermorny School of Witchcraft and Wizardry  |      300 | USA            |
|  7 | Koldovstoretz                                 |      125 | Russia         |
+----+-----------------------------------------------+----------+----------------+
6 rows in set (0.00 sec)

以上是关于text quete3 msql的主要内容,如果未能解决你的问题,请参考以下文章

Msql浅析-基础命令

dokcerfile 制作Msql镜像

向Msql插入date类型时间

向Msql插入date类型时间

Msql入门实战之下

Msql入门实战之下