Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/11/2014, 13:56
Avatar de Profesor_Falken
Profesor_Falken
 
Fecha de Ingreso: agosto-2014
Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 9 años, 9 meses
Puntos: 182
Respuesta: SQLException parameter out of bounds

Si, es eso. Cuando usas expresiones preparadas, no se utilizan las comillas simples.

Código Java:
Ver original
  1. String sentencia = "SELECT 'name', 'id', 'email', 'session' FROM users WHERE 'name' = ? and 'id' = ? and 'session' = ?";

Un saludo
__________________
If to err is human, then programmers are the most human of us