Ver Mensaje Individual
  #1  
Antiguo 09-05-2008
Avatar de ingabraham
ingabraham ingabraham is offline
Miembro
 
Registrado: ago 2007
Posts: 614
Reputación: 17
ingabraham Va por buen camino
Borrar registros de varias tablas

hola necesito borrar varios registros de varias tablas.
ej.
cuentascobro=1
tregistros en facturas
facturas tiene registros en historiasclinicas

me entienden entonces yo doy el cod=1 y se me borra todo el historial q tiene desde esa cuenta
ej2:
delete
cuenta,facturas ...
whre num=1 and cuenta.num= factura.num ...
Responder Con Cita