Ich möchte in Java mit JDBC PostgreSQL benutzen. PostgreSQL 9.1 lauft an Windows als Teil eines Bitnami Wappstack Installation. Connection ist elforgleich mit JDBC URL
- Code: Alles auswählen
jdbc :p ostgresql://10.0.8.59:5432:drupal
aber Select lauft nicht. Zum beispiel
- Code: Alles auswählen
select th_za,teljes_cim,google_cim,lon,lat,result,lekerdezes_dat from hatha where teljes_cim is not null and lat is null
gibt
Exception in thread "main" org.postgresql.util.PSQLException: ERROR: relation "hatha" does not exist
Position: 71
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
at hu.flexisys.geocoding.Process.feldolgoz(Process.java:101)
at hu.flexisys.geocoding.Process.main(Process.java:145)
In Log finde ich
ERROR: relation "hatha" does not exist at character 71
STATEMENT: select th_za,teljes_cim,google_cim,lon,lat,result,lekerdezes_dat from hatha where teljes_cim is not null and lat is null
und wenn ich kopiere dieses Statement in psql, es lauft in Ordnung. Wie möglicht es?
danke Voraus, Mfg: Balázs Bámer
