MySQL的示例数据库world夹私货???

mysql> SHOW databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sakila             |
| shop               |
| sys                |
| world              |
+--------------------+
7 rows in set (0.00 sec)

mysql> SHOW tables;
+-----------------+
| Tables_in_world |
+-----------------+
| city            |
| country         |
| countrylanguage |
+-----------------+
3 rows in set (0.00 sec)

mysql> SELECT * FROM country WHERE Name LIKE '%Taiwan%';
+------+--------+-----------+--------------+-------------+-----------+------------+----------------+-----------+-----------+------------+----------------+----------------+---------+-------+
| Code | Name   | Continent | Region       | SurfaceArea | IndepYear | Population | LifeExpectancy | GNP       | GNPOld    | LocalName  | GovernmentForm | HeadOfState    | Capital | Code2 |
+------+--------+-----------+--------------+-------------+-----------+------------+----------------+-----------+-----------+------------+----------------+----------------+---------+-------+
| TWN  | Taiwan | Asia      | Eastern Asia |    36188.00 |      1945 |   22256000 |           76.4 | 256254.00 | 263451.00 | T?’ai-wan | Republic       | Chen Shui-bian |    3263 | TW    |
+------+--------+-----------+--------------+-------------+-----------+------------+----------------+-----------+-----------+------------+----------------+----------------+---------+-------+
1 row in set (0.00 sec)

你可能感兴趣的:(《MySQL必知必会》学习笔记)