Created
December 29, 2022 12:49
-
-
Save juanchehin/51023c816fefd57ffceee921b6defb2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- chequear permiso | |
IF NOT EXISTS (SELECT IdPermiso FROM permisos_persona WHERE (IdPermiso = 1 or IdPermiso = 61) AND (IdPersona = pIdUsuario)) THEN | |
SELECT 'No tienes los permisos suficientes para realizar esta accion' AS Mensaje; | |
LEAVE SALIR; | |
END IF; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment