我用sql数据库中的示例数据库中的pubs数据库。
select * from titles  ,titleauthor, titleview
 join on titles.title_id=titleauthor.title_id
join on titleview.price=titles.price请指正,不胜感激

解决方案 »

  1.   

    select * from 表名1 join 表名2 on 条件2 join 表名3on 条件3……
      

  2.   

    select * from titles  
    join  titleauthor
     on titles.title_id=titleauthor.title_id
    join  titleview
    on titleview.price=titles.price
      

  3.   

    select * from titles  a join titleauthor b on a.title_id=b.title_id join titleview c 
     on c.price=a.price
      

  4.   

    select * from titles  a join titleauthor b on a.title_id=b.title_id join titleview c 
     on c.price=a.price
    or
    select * from titles  a ,titleauthor b,titleview c 
    where a.title_id=b.title_id and c.price=a.price