
22/08/2007, 10:14
|
 | | | Fecha de Ingreso: marzo-2006 Ubicación: Valladolid
Mensajes: 496
Antigüedad: 19 años, 1 mes Puntos: 0 | |
Re: duda con consulta He quitado los paréntesis de los + y me sale esto ahora
Error
consulta SQL:
SELECT Expedientes.expediente, Documentos.nombre
FROM Expedientes, Documentos, Clientes
WHERE Clientes.dni = '12143147K'
AND Expedientes.dni = Clientes.dni +
AND Documentos.tipo = 'foto'
AND Documentos.expediente = Expedientes.expediente +
LIMIT 0 , 30
MySQL ha dicho:
#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 'AND Documentos . tipo = 'foto' AND Documentos . expediente = Expedientes . exped' at line 1 |