除法 convert(cover_counts/cover_on_line_days,decimal(10,2))AS avgCoverCounts,截取字符串,从左开始截取两位 left('str',2) as str where 和 and 的区别。内链接没有区别 where 是关联后过滤 ,and 是连接条件 外连接有区别 比如左外连接。左表会全查 ,又表符合条件的查出来 ,没有过滤出不符合的数据