检查匹配项

过滤数据

# The "world" test database is available on the page:
# https://dev.mysql.com/doc/index-other.html
SELECT Name, Population
FROM country
WHERE Continent = 'Asia'


Name Population
Afghanistan 43,844,111
United Arab Emirates 11,513,149
Armenia 3,086,700
Azerbaijan 10,246,996
Bangladesh 175,686,899
Bahrain 1,600,366
Brunei 466,330
Bhutan 796,682
China 1,406,585,000
...

该语句从 country 表中取两列,但不是返回全部行,而只返回 Continent 等于 'Asia' 的行。