我正在Java 7和Apache Tomcat 7.0上使用Eclipse Helios。我有一个巨大的SQL查询,其中包含许多临时表,例如:
String query =
"\n select * " +
"\n from " +
"\n ( " +
"\n select * " +
"\n from a " +
"\n inner join " +
"\n ( " +
"\n ...
"\n )total on total.pk = a.pk " +
"\n ) data "
"\n inner join x on x.pk = a.pk
"\n inner join y on y.fk = a.pk
"\n inner join z on z.fk = a.pk
"\n inner join zz on zz.fk = a.pk
我正在使用Tab按钮转发距离,但是控制台输出没有像我之前的查询那样显示正确的方向。输出可能喜欢:
select *
from
(
...
)data
inner join x...
inner join y...
inner join z...
inner join zz...
这样的输出有很多错误的距离,使我在读取或修复上有所不同...是因为使用tab还是我的Eclipse版本或其他版本?请给我一个建议,非常感谢。