ITPub博客

首页 > 应用开发 > IT综合 > two method of left out join -- more than two table;

two method of left out join -- more than two table;

原创 IT综合 作者:huakaibird 时间:2007-09-06 15:20:49 0 删除 编辑

one

select A.NAME_1,B.NAME_2,C.NAME_3 from A left join B on A.ID=B.ID left join C on B.ID_1= C.ID_1;

two

select P.NAME_1,P.NAME_2,C.NAME_3 from (select A.NAME_1,B.NAME_2,B.ID_1 from A left join B on A.ID=B.ID) P left join C on P.ID_1= C.ID_1;

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/545828/viewspace-968235/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    41
  • 访问量
    421190