delphi
If (:max_cred_cte < :cred_actual_cte) then
debe devolver un mensaje de error y cancelar la transacción. Esto en otros motores puede solucionarse lanzando una excepción. ¿Cómo puedo hacerlo en firebird?
gracias amigos
Posted 17 April 2014 - 08:53 PM
If (:max_cred_cte < :cred_actual_cte) then
Posted 17 April 2014 - 09:06 PM
CREATE EXCEPTION VALOR_CREDITO_INCORRECTO 'El valor actual del crédito excede el cupo del cliente.';
If (:max_cred_cte < :cred_actual_cte) then EXCEPTION VALOR_CREDITO_INCORRECTO;
Posted 17 April 2014 - 09:16 PM
Posted 17 April 2014 - 09:22 PM
Vaya que sencillo de hacerse.
Posted 19 April 2014 - 03:16 PM