v_id 表名.字段名%type;
begin   
  select   序列.nextval   into v_id from 序列;
 new.字段名  := v_id;
  end;

解决方案 »

  1.   

    不行啊改成这样了,还是不行create or replace trigger 触发器名
    before insert on 表名
    referencing old as old new as new for each row
    begin
    select 序列名.nextval into :new.LOGID from dual;
    end;为什么在SQL plus里脸结束都不能结束呢??一直处于输入状态,按回车,又生成下一行