Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/09/2009, 21:16
iguerrero84
 
Fecha de Ingreso: septiembre-2009
Mensajes: 1
Antigüedad: 14 años, 7 meses
Puntos: 0
Error de Query Pgsql en Netbeans

Saludos, el caso que se me presenta es el siguiente:

Estoy trabajando con el IDE Netbeans y uso a Postgres como gestor de base de datos, donde la prueba de conexion es exitosa pero al realizar una simple sentencia Select, me da error,

public Sentencia_Select(){
try {
Class.forName(driver);
conn = DriverManager.getConnection(ruta, user, pass);
Statement statement = conn.createStatement();

rs = statement.executeQuery("select * from Docente;");

while(rs.next()) {
for (int i = 1; i < 8; i++) {
System.out.println(rs.getString(i));
}
}
}
catch (Exception e) {
e.printStackTrace();
}
ERROR al compilar:
org.postgresql.util.PSQLException: ERROR: relation "docente" does not exist

Me hace falta agregarle alguna instruccion? agradecería pronta ayuda!!!