Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/06/2011, 01:20
Avatar de HackmanC
HackmanC
 
Fecha de Ingreso: enero-2008
Ubicación: Guatemala
Mensajes: 1.817
Antigüedad: 16 años, 3 meses
Puntos: 260
Sonrisa Respuesta: duda sobre instruccion SQL

Hola,

Cita:
Iniciado por calichecal Ver Mensaje
String instruc= "select IMAGEN from APP."+tabla+" where "+campo+" = '"+valor+"' is not NULL";
La sintaxis de SQL.

Código SQL:
Ver original
  1. SELECT imagen FROM tabla WHERE campo IS NOT NULL

Ahora reemplazando.

Código Java:
Ver original
  1. "select imagen from APP.".concat(tabla).
  2. concat(" where ".concat(campo).concat(" is not null")
Saludos,