大大所談的,應可由子查詢完成,是否可完整列出二表格各欄位,select aa ,(select bb from b where ab.b=ab.a) as bb ,(select cc from c where ac.c=ac.a) as ac from a作者: Hsieh 時間: 2011-2-21 15:31
Select j.bm,j.gh,j.kuanh,j.xm,j.rq,j.wltm,j.gxmc,j.bzdj,j.je,j.zdh,j.zhah,j.shul,
z.bh,z.ddh, z.ddsl,
m.tmbh,m.zdkhi,m.color,m.csize,m.shul
From jjgzmxb j left join zhidanbase z on j.zdh =z.zdh
left join mes_zhidaninfo m on j.wltm =m.jwltm
join mes_zhidaninfo d on j.zdh=d.zdh
where j.zdh='11839-01f'