我想使用自动递增的id列(使用sequence和trigger方法)检索新插入记录的ID。这样做的标准方法是什么? 最佳答案 使用PL / SQL RETURNING子句:insert into mytable (...) values (...) returning id into v_id;