首页 > Linux操作系统 > Linux操作系统 > 组合约束,自我错误理解纠正一则
insert into schema.t_list_member(id, list_id, code, status, create_date)(select schema.seq_t_list_member_id.Nextval, 481, r.code, 1, sysdatefrom schema.list rwhere r.type1 = 7and r.type2 = 1);
insert into schema.t_list_member(id, list_id, code, status, create_date)(select schema.seq_t_list_member_id.Nextval, 481, code, 1, sysdatefrom (select distinct code From schema.list where type1 = 7and type2 = 1));
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11258275/viewspace-667395/ ,如需转载,请注明出处,否则将追究法律责任。