I'm trying this query, but it's not working
insert into REGIONS(region_name) values ('SOUTH_AFRICA') , ('NORTH_AFRICA');
I'm trying this query, but it's not working
insert into REGIONS(region_name) values ('SOUTH_AFRICA') , ('NORTH_AFRICA');
You can use INSERT INTO with SELECT as below:
INSERT INTO REGIONS (region_name)
SELECT 'SOUTH_AFRICA' FROM DUAL
UNION
SELECT 'NORTH_AFRICA' FROM DUAL
REGION_ID, so it is not allowing insert. You can include the column in the insert into and add the value for the same in the select