# **sql where 条件**
---
where 条件用于过滤数据
---
### **sql where 条件**
---
where 条件被用来提取达到指定标准的数据
---
### **sql where 语法**
---
>SELECT column_name,column_name
FROM table_name
WHERE column_name operator value;
---
### **where 条件案例**
---
下面这条sql语句从“Customers”表中筛选出国家是 “Mexico”的所有数据
---
>SELECT * FROM Customers
WHERE Country='Mexico';
---
### **文本字段和 数字字段**
---
SQL需要单引号的文本值(大多数数据库系统也将允许双引号)
但是,数字字段不应包含在引号中:
---
>SELECT * FROM Customers
WHERE CustomerID=1;
---
- sql文档
- sql简介
- sql语法
- select
- distinct
- where
- and & or
- order by
- insert into
- update
- delete
- injection
- select top
- like
- wildcards
- in
- between
- aliases
- joins
- inner join
- left join
- union
- select into
- insert into select
- create db
- create table
- constraints
- not null
- unique
- primary key
- foreign key
- check
- sql default
- create index
- create index
- drop
- alter
- auto increament
- views
- dates
- null values
- null functions
- data types
- db data types
- SQL Functions
- avg
- count
- first
- last
- max
- min
- sum
- group by
- having
- mid
- len
- round
- now
- format
- quick ref
- hosting
- sql quiz