Ver Mensaje Individual
  #13 (permalink)  
Antiguo 28/01/2010, 05:39
xiskoct
 
Fecha de Ingreso: enero-2010
Mensajes: 46
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Duda en una consulta

SELECT *
FROM bd.contratos
WHERE cif = '123456'
AND (
idcontrato LIKE '%12%'
OR cif LIKE '%12%'
OR idservicio LIKE '%12%'
OR fAlta LIKE '%12%'
OR fBaja LIKE '%12%'
OR Horas LIKE '%12%'

Vale he ejecutado esto y me devuelve #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 30' at line 3 .