1.连接查询和关联查询连接查询:把两个表中相同的元素的连接就可以查询,使用:where里,select table1.*,table2.* from table1,table2 where table1.id=table2.id; 关联查询:把两个表关联,之后的操作对两个表都有影响(left join,right join,full join, inner join)使用:不用where,select table1.*,table2.* from table1 (inner)join table…