5
Answers

Select query inside Insert Query.

Ask a question
shahnid k

shahnid k

7y
301
1
  1. insert into ACCESS_DETAILS(USER_ID,GROUP_ID,COMPANY_ID) values (1111,11, (select COMPANY_ID from GROUP_COMPANY_CONFIG where GROUP_ID = '1'))  
In the above query, the subquery is returning more than one values. so how can i insert it into the table without error. 

Answers (5)