这是我的桌子:
user table:
id..|..fname
1...|..dan
2...|..den
trans table:
.transid.|..userid....|..adid.....|..click
.....1...|....1.......|.....1.....|.....1
.....2...|....2.......|.....1.....|.....1
ads table:
id..|..adname
1...|..sample
我的选择子句是:
select u.fname,
t.click
from user u
inner join ads a on u.id=a.id
inner join trans t on a.id=t.transid
order by u.fname;
我期待的结果
fname....|..click
dan......|...1...
den......|...1...
但结果是错误的,它只显示第一行。这里有什么问题?