"localhost:/firebird/data/ILICHEVSK2.FDB". �������� Previous topic Chapter index Next topic

CROPPARAMS_SetID

 

��������

(��� �������� ��� �������� CROPPARAMS_SetID)

 

�����������

CREATE TRIGGER "CROPPARAMS_SetID" FOR CROPPARAMS
ACTIVE BEFORE INSERT POSITION 0
as
begin
  if (new.CROPPARAMID is null) then begin
    new.CROPPARAMID = gen_id(CROPPARAMIDGEN,1);
    new.sortindex = new.CROPPARAMID;
  end
  if (new.state is null) then new.state = 0;
end

 

     Previous topic Chapter index Next topic