在觸發器中使用sequences問題

在觸發器中,默認某個字段自增加,不能直接把seqences的值賦給字段,要用select  into ,而後複製。test 如:;new.id:=test_seq.nextval;select 會報錯。next 應該這樣寫:new select test_seq.nextval into vID from dual; :new.id:=vID;
相關文章
相關標籤/搜索