jdbc连接数据库做查询。我的SQL是这样的
String sql = select  * FROM  AAT  where  airlinetype =1  and  sourece>1 and DATALENGTH(useWeekDay) >0 
union  select * FROM  ACX  where  airlinetype =1  and  sourece>1 and DATALENGTH(useWeekDay) >0  
union  select * FROM  AEB  where  airlinetype =1  and  sourece>1 and DATALENGTH(useWeekDay) >0  
union  select * FROM  AKA  where  airlinetype =1  and  sourece>1 and DATALENGTH(useWeekDay) >0 
……后面还连接了很多表。200多个吧。他们的结构都一样。在数据库直接查询20分钟都没查完。在java代码我执行到ResultSet  rs =st.executeQuery(sql);更加不行了由于数据过多,连接表过多。程序在这里就不动了,查询不了啊。
怎么解决这样问题啊。
谁指导一下啊。