Skip to content

Filtering with WHERE · ⁨用 WHERE 筛选⁩

English

Filtering rows with WHERE

So far every query returned all the rows. Add a WHERE clause to keep only the rows that match a condition:

Only rows where the condition is true are returned.

中文

用 WHERE 筛选行

到目前为止,每条查询都返回所有行。加上 WHERE 子句,只保留满足条件的行:

SELECT name, score FROM student WHERE score >= 80;

只有条件为真的行才会返回。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩