![]() |
![]() |
![]() |
![]() |
![]() |
FTP | ![]() |
![]() |
CCD | ![]() |
![]() |
Buscar | ![]() |
![]() |
Trucos | ![]() |
![]() |
Trabajo | ![]() |
![]() |
Foros | ![]() |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Procedure Y Trigger
hola amigos, imaginemos que tenemos este procedure:
CREATE PROCEDURE BORRAR_ALBARAN ( PNUMERO INTEGER) AS BEGIN DELETE FROM ALBARANES WHERE NUMERO= ![]() /* Procedure body */ SUSPEND; END este procedure borraria la linea en la tabla maestro donde el numero sea igual al numero, el trigger asociado ANTES de borrar en albaranes para borrar en LINEAALBARANES tengo una duda: CREATE TRIGGER PROPAGAR_BORRADO_LALBARANES FOR ALBARANES BEFORE DELETE AS BEGIN DELETE FROM LINEAALBARANES WHERE NUMERO=old.NUMERO AND ANNO=old.ANNO; /*y aqui viene mi duda: por que me da error de compilacion? me sale esto: fmCompile.quCompile: Invalid token. Dynamic SQL Error. SQL error code = -104. Unexpected end of command.*/ END NACLU2 ![]() |
|
|
![]() |
|