Fórum Uma forca neste trigger #277941
19/04/2005
0
Preciso apagar na tabela temprelatorio o produto que atingiu o estoque minimo na tabela de produtos, até aqui consegui, só não consegui fazer o delete from temprelatorio where codigotemprelatorio = codigoProduto.
Muito obrigado a tds !!
CREATE TRIGGER PRODUTOS_AU0 FOR PRODUTOS
ACTIVE AFTER UPDATE POSITION 0
AS
begin
if (New.controlfalta =´T´) then
begin
if (new.quantidade >= New.minimo) then
Delete From temprelatorio ;
end
end
^
Muito obrigado a tds !!
CREATE TRIGGER PRODUTOS_AU0 FOR PRODUTOS
ACTIVE AFTER UPDATE POSITION 0
AS
begin
if (New.controlfalta =´T´) then
begin
if (new.quantidade >= New.minimo) then
Delete From temprelatorio ;
end
end
^
Essistemas
Curtir tópico
+ 0
Responder
Posts
19/04/2005
Essistemas
Sobe ?
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)