首先创建一个序列create sequence seq1increment by 1start with 1maxvalue 999999999;测试表create table a(a number(20),b varchar2(10));其次创建存储create or replace procedure pro_insert(a_p in varchar2)isbegin insert into a (a,b) values (seq1.nextval,a_p); ---seq1.nextval是表示已经有的序列上加1 commit;end pro_insert;插入数据sql> set serveroutput on;sql> execut pro_insert('a'); PL/sql procedure successfully completed sql> select * from a; A B--------------------- ---------- 2 a