mysql AND operator SYNTAX

mysql AND operator SYNTAX

Action: in the WHERE statement to combine two or more conditions. Foshan marble feet

Syntax: the SELECT * the FROM table WHERE field value Operator 1 Operator 2 AND field value

Note: If the first condition and the second condition are satisfied, the AND operator displays a record. There is a condition is not satisfied, returns null

mysql AND operator Example

// show all people the last name "Carter" and the name "Thomas" in the 
SELECT * FROM Persons WHERE FirstName = ' Thomas' AND LastName = 'Carter';

Guess you like

Origin www.cnblogs.com/furuihua/p/11904665.html