借 everydream(可口可乐) 的写法改一下
select tab1.[id],
P.BBS_Cate_Name P_BBS_Cate_Name,
C.BBS_Cate_Name C_BBS_Cate_Name,
tab1.title,
tab1.menu,
tab2.remenu
from tab1,tab2,tab3 P,tab3 C
where tab1.[id]*=tab2.[id]
and tab1.BoardID_1*=P.BBs_Cate_ID
and tab1.BoardID_2*=C.BBs_Cate_ID
--多表关联
select tab1.[id],
P.BBS_Cate_Name P_BBS_Cate_Name,
C.BBS_Cate_Name C_BBS_Cate_Name,
tab1.title,
tab1.menu,
tab2.remenu
from tab1,tab2,tab3 P,tab3 C
where tab1.[id]=tab2.[id]
and tab1.BoardID_1=P.BBs_Cate_ID
and tab1.BoardID_2=C.BBs_Cate_ID
select t1.id,t2.pid,t3.BBS_Cate_Name,t4.BBS_Cate_Name,t1.title,t1.menu,t2.remenu
from 表1 t1,表2 t2,(select 表3.BBS_Cate_Name from 表1,表3 where 表1.BoardID_1 *= 表3.BBs_Cate_ID) t3,(select 表3.BBS_Cate_Name from 表1,表3 where 表1.BoardID_2 *= 表3.BBs_Cate_ID) t4
where t1.id *= t2.pid and t1.BoardID_1 *= t3.BBs_Cate_ID and t1.BoardID_2 *= t3.BBs_Cate_ID