Ver Mensaje Individual
  #4  
Antiguo 21-08-2008
jorge82 jorge82 is offline
Baneado
 
Registrado: jun 2005
Ubicación: Mérida, Yucatán, México
Posts: 75
Reputación: 19
jorge82 Va por buen camino
Hola, sólo se me ocurre lo siguiente:

Código SQL [-]
declare variable vCliente BigInt;

vCliente = null;
Select IDcliente from cliente
where IDcliente = :ParIDCliente
into vCliente;

if (vCliente = null) then-- Si es null, significa que no existe
Guardar;
else
Modificar;

Espero que te sirva.

--
Un saludito.
Responder Con Cita