I have a procedure that is receiving some values from our application, I need to insert these static values and the results of a subquery to one of our tables. Is this possible with one insert statement? So it would look like this
Insert into table
values
(value1, value2, value3, (select testdata from dual));
The resulting table would look like:
value1 | value2 | value 3 | ROW 1 FROM SUBQUERY
value1 | value2 | value 3 | ROW 2 FROM SUBQUERY
I know that if I was only using a subquery I would omit the values command and vice versa with actual values. Does anyone have experience with this one?