表结构
a:
aid
b:
aid | name
x:
xid
y:
xid | aid | value
SELECT a.aid,b.name FROM a join b on a.aid = b.aid
aid | name
1 | aaaa
SELECT x.aid,y.value FROM x join y on x.xid = y.xid
aid | value
1 | bbb
想得到结果,因为上面2个结果都有aid。
aid | name | value
1 | aaa | bbb
1
changsha OP help
|
3
moonkiller 2014-10-13 21:22:16 +08:00
我来找你了
|