The WHERE
clause is used to filter records.
It is used to extract only those records that fulfill a specified condition.
If we want to return only the records where city
is London
, we can specify that in the WHERE
clause:
PostgreSQL requires quotes around text values.
However, numeric fields should not be enclosed in quotes:
Quotes around numeric fields will not fail, but it is good practice to always write numeric values without quotes.
Use the >
operator to return all records where customer_id
is greater than 80:
Quotes around numeric fields will not fail, but it is good practice to always write numeric values without quotes.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!