mysql语句的语法模板:
select distinct <select_list>
from
<left_table><join_type> join <right_table> on <join_condition>
where <where_condition>
group by <group_by_rowname>
having <having_condition>
order by <order_by_condition>
limit <limit_number>
mysql语句的语法模板:
select distinct <select_list>
from
<left_table><join_type> join <right_table> on <join_condition>
where <where_condition>
group by <group_by_rowname>
having <having_condition>
order by <order_by_condition>
limit <limit_number>