📜  MySQL AND 运算符 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:17.149000             🧑  作者: Mango

代码示例1
The AND operator is a logical operator that combines two or more Boolean expressions and returns true only if both expressions evaluate to true. The AND operator returns false if one of the two expressions evaluate to false.

Here is the syntax of the AND operator:

SELECT 
    customername, 
    country, 
    state
FROM
    customers
WHERE
    country = 'USA' AND state = 'CA';