等值连接

  1. 格式:
  2. select * from table1,table2
  3. where table1.t2id=table2.id;

sql99语法

连接类型:
    1. inner  内连接
  2. left   左外连接
  3. right  右外连接
  5. full 

语法:
    select * from table1 t1
  连接类型 join table2 t2
  on 连接条件
     where 筛选条件

案例:
    select t1.*,t2.* from table1 t1
  left join table2 t2 on t1.t2id=t2.id
  left join table3 t3 on t1.t3id=t3.id