码迷,mamicode.com
首页 > 数据库 > 详细

sql

时间:2016-05-19 19:08:25      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

select * from kcb 
left outer join (select bc.mc bcmc,bj.mc bjmc ,bj.bjid from bj,bc where bc.bcid=bj.bcid) bj on kcb.bjid=bj.bjid 
left outer join (select cdid ,mc cdmc,rnrs,cdlbm from cd) cd on kcb.cdid=cd.cdid 
left outer join (select ryid,mc rymc from ry) ry on kcb.fzryid=ry.ryid 
where kcb.fzryid=(select fzryid from kcb where kcbid=16252);

 

sql

标签:

原文地址:http://www.cnblogs.com/loce/p/5509703.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!