Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/02/2010, 09:38
Avatar de gnzsoloyo
gnzsoloyo
Moderador criollo
 
Fecha de Ingreso: noviembre-2007
Ubicación: Actualmente en Buenos Aires (el enemigo ancestral)
Mensajes: 23.324
Antigüedad: 16 años, 5 meses
Puntos: 2658
Respuesta: ayuda con DELETE INNER JOIN

Yendo al manual de referencia (13.2.1. Sintaxis de DELETE),
para borrar los datos de datos_ofertas, debería ser:
Código MySQL:
Ver original
  1. DELETE datos_ofertas
  2. FROM datos_ofertas  INNER JOIN candidaturas
  3. ON datos_ofertas.idoferta = candidaturas.idoferta
  4. WHERE datos_ofertas.fecha <  '2009-09-01';
Según lo que dice:

Cita:
Sintaxis para múltiples tablas:

Cita:
DELETE
tbl_name[.*] [, tbl_name[.*] ...]
FROM table_references
[WHERE where_definition]

O:

Cita:
DELETE
FROM tbl_name[.*] [, tbl_name[.*] ...]
USING table_references
[WHERE where_definition]
donde table_references representa el JOIn de donde se obtiene la selección a borrar
__________________
¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente...
"El problema es la interfase silla-teclado." (Gillermo Luque)