或
select * from 表名 where toId in((select fromId from 表名 where toId = 3), 3)
内关联 inner join左关联 left join
右关联 right join
交叉关联 cross join
语法为:
select *
from a inner join b
on a.xx=b.xx
where XXX
欢迎分享,转载请注明来源:内存溢出
或
select * from 表名 where toId in((select fromId from 表名 where toId = 3), 3)
内关联 inner join左关联 left join
右关联 right join
交叉关联 cross join
语法为:
select *
from a inner join b
on a.xx=b.xx
where XXX
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)