语法描述:
SELECT select_list
FROM T
WHERE search_condition
参数说明:
search_condition |
T的过滤条件 |
举例:
SELECT CustID,CustName,Contact,ContactTitle,CityCode FROM Customer WHERE ContactTitle == "Owner" |
查询ContactTitle为Owner的记录 |
SELECT CustID,CustName,Contact,ContactTitle,CityCode FROM Customer WHERE ([30101,30201,50101]).contain(CityCode) |
查询CityCode为30101,30201,50101的员工信息 |
知识点:
1)search_condition 中除了常规的大于,小于,等于等单值判断,还可以使用集算器函数,例如上例中使用contain()