![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/06/2009, 05:12
|
| | Fecha de Ingreso: abril-2008
Mensajes: 32
Antigüedad: 16 años, 9 meses Puntos: 0 | |
Respuesta: eliminar automaticamente registro cada 3 meses Hola,
puedes probar algo así:
Código:
delete from tabla_productos
where fecha_producto < (DATE_FORMAT(DATE_ADD(NOW(), INTERVAL 90 DAY),'%Y-%m-%d'))
Espero que te sirva. |