Ver Mensaje Individual
  #3  
Antiguo 31-08-2005
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
Código:
AS
begin
    if (NEW.custno IS null) then
      new.custno= GEN_ID(nextcust,1);
end
ya no necesitas asignarlo a mano.

Un saludo
Responder Con Cita