"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