1. 库的管理
2. 表的管理
SELECT world.country.Continent,MAX(world.country.SurfaceArea)
FROM world.country
GROUP BY world.country.Continent;
SELECT world.country.Continent,AVG(world.country.SurfaceArea)
FROM world.country
WHERE world.country.Continent LIKE "%a%"
GROUP BY world.country.Continent;
SELECT COUNT(*),world.country.Continent
FROM world.country
GROUP BY world.country.Continent
HAVING COUNT(*)>30;
SELECT COUNT(*),world.country.Continent
FROM world.country
WHERE world.country.IndepYear IS NOT NULL
GROUP BY world.country.Continent
HAVING COUNT(*)>30;
SELECT COUNT(*),LENGTH(world.country.`Name`)
FROM world.country
GROUP BY LENGTH(world.country.`Name`)
HAVING COUNT(*)>10;
SELECT MAX(world.country.SurfaceArea),world.country.Continent,LENGTH(world.country.`Name`)
FROM world.country
GROUP BY world.country.Continent,LENGTH(world.country.`Name`)
HAVING MAX(world.country.SurfaceArea)>1000000
ORDER BY MAX(world.country.SurfaceArea) DESC;