1、设置新表的id的Default值为:sys_guid(),nullable为空
2、insert的sql语句数据源:select数据来源表的时候,不用再带sys_guid(),而目标表的insert into,不用带上id
目标表:
create table T_SYS_USER_ROLE
(
ID VARCHAR2(75) default sys_guid() not null,
USER_ID VARCHAR2(75),
ROLE_ID VARCHAR2(75)
)
insert语句:
insert into t_sys_user_role
(user_id, role_id)
select id, 'D4614E459C584C1E9219E7FB93A797E6'
from t_sys_user