查询语法如下: select... from... where... group by... (having)... order by...; 顺序是from (从指定表中) where (具体条件) group by (分组依据) having (附加条件) select (查询) order by (结果排序) 单行处理函数主要包括:lower, upper, substr, length, trim, str_to_date, date_format, format, round, ran…