![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/01/2010, 05:39
|
| | Fecha de Ingreso: enero-2010
Mensajes: 46
Antigüedad: 15 años, 1 mes 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 . |