
SELECT [DISTINCT/ALL/] {*|column|expression [alias],…}
FROM table [Natuarl join /]
where子句;
自然连接只考虑那些在两个关系模式中都出现的属性上取值相同的元祖队。
oldname as newName
upper()
low()
trim()
escape
order by 列名 dec/asc
and , or ,not
between , not between
支持多元元祖分别比较运算
并:union
交:intersect
差:escape
avg, min max sum count
语法:avg([distinct]属性名)
group by 分组是计算查询结果的第一步
https://blog.csdn.net/weixin_43267344/article/details/90205955
in , not in
some ,all
exists ,not exists