如果还没有创建表,那么使用下面的方式创建就可以了。create table testuu(id varchar2(2000) default sys_guid(),name varchar2(2000)) ;如果已经创建了表,那么先保证你原有的主键ID没有任何实际的业务意义,要修改的话使用下面的方法。alter table testuu modify id default sys_guid() ;update testuu set id = sys_guid ();