Ver Mensaje Individual
  #3  
Antiguo 27-05-2004
Giniromero Giniromero is offline
Miembro
 
Registrado: may 2003
Ubicación: Madrid
Posts: 296
Reputación: 22
Giniromero Va por buen camino
Hola,

lo que tengo en Edit SQL es:

Código SQL [-]
select CODVTO, DESCRIPCION, NUMGRUP, FECHAINI, FECHAFIN
from VTOS
where (NUMGRUP=:NUMGRUP)
and (CURRENT_DATE between FECHAINI and FECHAFIN)
order by fechaini desc


en Insert SQL tengo:
Código SQL [-]
insert into VTOS
  (CODVTO, DESCRIPCION, NUMGRUP, FECHAINI, FECHAFIN)
values
  (:CODVTO, ESCRIPCION, :NUMGRUP, :FECHAINI, :FECHAFIN)

y en modfySQL tengo:


Código SQL [-]
update VTOS
set
  CODVTO = :CODVTO,
  DESCRIPCION = ESCRIPCION,
  NUMGRUP = :NUMGRUP,
  FECHAINI = :FECHAINI,
  FECHAFIN = :FECHAFIN
where
  CODVTO = :OLD_CODVTO and
  NUMGRUP = :OLD_NUMGRUP and
  FECHAINI = :OLD_FECHAINI




Si veis algo, os agradeceré me lo comenteis.

Muchas gracias a todos, por todo

virginia
__________________
Sonrie al mundo, y el mundo te sonreirá :)
Responder Con Cita