ORA-00947: not enough values even when number of VALUES matches the insert
I faced the issue "ORA-00947: not enough values even when number of VALUES matches the insert" - I checked the couple of sites but did not get any clue finally found that the issue is because of 'VALUES' clause with 'SELECT' statement..
Wrong:
insert into tabA(a,b,c) Values (Select 'a', 'b', 'c' from dual);
Correct: - No Values clause
insert into tabA(a,b,c)
(Select 'a', 'b', 'c' from dual);
I faced the issue "ORA-00947: not enough values even when number of VALUES matches the insert" - I checked the couple of sites but did not get any clue finally found that the issue is because of 'VALUES' clause with 'SELECT' statement..
Wrong:
insert into tabA(a,b,c) Values (Select 'a', 'b', 'c' from dual);
Correct: - No Values clause
insert into tabA(a,b,c)
(Select 'a', 'b', 'c' from dual);
No comments:
Post a Comment