总结:
SQL语句的基本操作:
1.增加一行
insert into 表名 (列名列表) values (值列表)
2.增加多行
insert into 表名 (列名列表) select (列名列表) from 表名
3.更改
update 表名 set (列明=列值...) where 过滤条件
4.删除
delete from 表名 where 过滤条件
truncate table 表名
重点:查询
select [distinct] {*|column[alias],...}
from 表名
where 过滤条件
order by column
1.投影操作
select [top 数值] 列名列表 [as 别名] from 表名
2.选择操作
select 列名列表 from 表名 where 过滤条件