那就 SELECT B.BB,A.A,A.B FROM TABLE1 A,TABLE2 B WHERE A.A=B.AA(+);关于(+)表示左连接 就是table1表的记录会被全部显示出来,无论与table2是否能够匹配
select b.NR1 as hpzl,a.hphm,a.wfdd,a.wfrq,a.fkpjhm,a.fkje,c.NR1 as wzlx,c.NR1 as cldd,a.clrq,a.clry from punishment a ,punish_code b ,puinsh_code c ,puinsh_code d --,operator e where a.hpzl=b.dm and b.lb='号牌种类' and a.wzlx=c.dm and c.lb='违法类型' and a.cldd=d.dm and d.lb='部门'为什么不能用
1.* 是表示显示全部的,但结果没要显示AA呀?
2. table1.a=table2.aa(+);//(+)这是什么意思?
SELECT B.BB,A.A,A.B FROM TABLE1 A,TABLE2 B WHERE A.A=B.AA(+);关于(+)表示左连接
就是table1表的记录会被全部显示出来,无论与table2是否能够匹配
punishment a ,punish_code b ,puinsh_code c ,puinsh_code d --,operator e
where a.hpzl=b.dm and b.lb='号牌种类'
and a.wzlx=c.dm and c.lb='违法类型'
and a.cldd=d.dm and d.lb='部门'为什么不能用