对于这种大数据量的多表查询,写代码时最好不要用select * from ta,tb,tc... where这样的语句。因为需要大量扫描表数据,非常消耗资源。应该用join,比如:select * from ta join tb on...join tc on ...