Procedimiento almacena de SQLServer a My - Raiserror
Hola amigos estoy migrando aplicaiones a My sql y me encuento con el siguiente problema.
en sql server escrivo lo siguente
CREATE TRIGGER Ajus_stock_det_UPD ON Ajus_stock_det UPDATE AS
if (select cantidad from inserted) != (select cantidad from deleted) )
begin
RAISERROR('¡No se puede modificar un ajuste confirmado!', 16, 1)
ROLLBACK TRANSACTION
RETURN
end
no logro encontrar el equivalente de RAISERROR, estuve viendo algo sobre condition handlers pero no encontre la forma de crear un error que devuelva el error a la aplicacion.
Si alguien tuvo alguna experiencia, le agradeceria si me ayuda.
Saludos
Magnos
Subject
Views
Written By
Posted
Procedimiento almacena de SQLServer a My - Raiserror
5791
October 12, 2006 01:56PM
2522
October 12, 2006 08:29PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.