"localhost:/firebird/data/ILICHEVSK2.FDB". Триггеры Previous topic Chapter index Next topic

QUALITY_SetID

 

Описание

(Нет описания для триггера QUALITY_SetID)

 

Определение

CREATE TRIGGER "QUALITY_SetID" FOR QUALITY
ACTIVE BEFORE INSERT POSITION 0
AS
begin
  if (New.QualityID is null) then
    New.QualityID = GEN_ID(qualityIDGen,1);
  if (New.analysisdate is null) then New.analysisdate = current_date;
end

 

     Previous topic Chapter index Next topic