Ver Mensaje Individual
  #3  
Antiguo 01-06-2010
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 18.286
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Hay que saber cuando quieres hacer la actualización. Si te interesa hacerla siempre que grabes o modifiques un registro, debes utilizar los TRIGGERS de Alta y Update.

Si te interesa hacerlo en un momento dado para todos los registros, lo que te sobre ahí es la clausula WHERE que te limita el núumero de registros.
Deberías poder hacer algo así:

Código SQL [-]
UPDATE Presupuesto 
SET Costo = 
(Precio_Basico_Grupo + Total_por_Hospit +  Material_Med_Quir + Medicinas + Examen_Especial + 
Biopsia +  Inst_Especial + Equipo_Especial + Mat_Especial + Interv_Quirurgica +  TTO_Medico_P_O + 
Hon_Ayudantes + SAP + Hon_Anestesiologia +  Hon_Instrumentista)
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita