select的简单语句
select 列名 from 表名;
select * from 表名;
select distinct 列名 from 表名/distinct中 类似于set 没有重复的值
select where子句
select 列名 from 表名 where 列 运算符 值
SELECT * FROM Persons WHERE City='Beijing'
= <> > < >= <= between like
不等于 在某个范围之间 搜索某种模式
*请注意,我们在例子中的条件值周围使用的是单引号。
SQL 使用单引号来环绕文本值(大部分数据库系统也接受双引号)。如果是数值,请不要使用引号。*