I am using mybatis and i would like to insert an ArrayList to some table. all right using foreach in mapper, well this ends up with oracle exception ORA_00933 . t
Oracle does not support
insert into xxx values (xxx,xxx),(xxx,xxx)
maybe you can use insert all like this
INSERT ALL INTO SYS_ROLES_PERMISSIONGROUP (role_id, permissiongroup_id) VALUES (#{model.role_id}, #{model.permissiongroup_id})