当前位置: 代码迷 >> 综合 >> firebird 字段自增
  详细解决方案

firebird 字段自增

热度:62   发布时间:2023-12-21 10:50:48.0
CREATE   GENERATOR   GEN_USERID;

CREATE   TRIGGER   "TRI_INS_ID "   FOR   "USER "  
ACTIVE   BEFORE   INSERT   POSITION   0
as
    begin
      NEW.ID=GEN_ID(GEN_USERID,1)
    end