select a.nickname,e.name from a,
(select b.no,c.name from b,c where b.c_id=c.c_id) e
where a.no=e.no and a.flag=1;不知道有没有快一点,你试试吧。
自己用执行计划查看一下
(select b.no,c.name from b,c where b.c_id=c.c_id) e
where a.no=e.no and a.flag=1;不知道有没有快一点,你试试吧。
自己用执行计划查看一下
试试:
select A.NickName,C.Name from A
left join B on A.no=B.no
left join C on C.ID=B.C_id
where A.flag=1
left join B on A.no=B.no
left join C on C.ID=B.C_id
where A.flag=1这个语句不能运行阿,报SQL命令还未正常结束
贴名:问题解决bluelamb, phant0m,lian5201314请接分