不明白你的实际情况select count(*) from a,b,c where a.id=b.id and b.id=c.id;这种情况??你究竟需要做什么呢?