Uma forca neste trigger

Delphi

19/04/2005

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
^


Essistemas

Essistemas

Curtidas 0

Respostas

Essistemas

Essistemas

19/04/2005

Sobe ?


GOSTEI 0
POSTAR