blueler

博客园 首页 联系 订阅 管理
select A.id,
 B.name as Name1,
 C.name as Name2,
 D.name as Name3
from (select * from table2 where id='11111') A left join table1 B on A.id1=B.id
 left join table1 C on A.id2=B.id
 left join table1 D on A.id3=B.id
posted on 2006-08-01 15:15  vj79  阅读(195)  评论(1编辑  收藏  举报