java连接oracle时出现序列在此处不允许

2025-02-24 21:50:55
推荐回答(3个)
回答1:

oracle 此处不允许序列
一个插入语句,这样写报错:此处不允许序列
insert into t_dict_product_mapping(f_dict_id, f_product_code_jifei, f_product_name_jifei)
select s_dict_product_mapping.nextval dictid,gid,gname from t_dw_fltelecomproduct_all a
group by gid,gname

改写成这样既可继续
insert into t_dict_product_mapping(f_dict_id, f_product_code_jifei, f_product_name_jifei)
select s_dict_product_mapping.nextval dictid,gid,gname from (
select gid,gname from t_dw_fltelecomproduct_all a
group by gid,gname
)

回答2:

贴报错信息

回答3:

什么提示, 说具体点, 例如出现什么错