Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/03/2011, 15:12
loquilloboss
 
Fecha de Ingreso: octubre-2010
Mensajes: 15
Antigüedad: 13 años, 6 meses
Puntos: 0
Pregunta Duda con Delete

Estimados,

tengo la siguiente consulta:

SELECT tab2.*
FROM tabla1 tab1,
tabla2 tab2
WHERE tab1.Cerrado = 'SI'
AND tab2.idUnico = tab1.idUnicoCliente
AND tab2.numeroCarga = tab1.numeroCargaCliente
LIMIT 500;

Pero si cambio eso a


DELETE tab2.*
FROM tabla1 tab1,
tabla2 tab2
WHERE tab1.Cerrado = 'SI'
AND tab2.idUnico = tab1.idUnicoCliente
AND tab2.numeroCarga = tab1.numeroCargaCliente
LIMIT 500;

EL motor me indica que no es posible realizar la query, si saco el LIMIT funciona perfectamente, pero necesito del limit por regla de negocio.

Como puedo resolverlo?


De ante mano muchas gracias.