As I saw on many sites, if I want to do INSERT ALL , I have to finish it with SELECT (Like SELECT * FROM dual;)
INSERT ALL
SELECT (Like SELECT * FROM dual;)
Why?
A subquery is required for the INSERT ALL syntax (see http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#i2111652 )
an insert clause is executed for each row returned by a subquery (i.e., a SELECT statement). SELECT * FROM dual returns one row, so insert_clause (s) is executed once (which is useful when you want to insert a hard set of values)
As shown in the documentation , the INSERT ALL syntax expects a subquery: you cannot have INSERT ALL [...] VALUES [...] .
INSERT ALL [...] VALUES [...]
I suspect that SELECT from dual is a way to make multiple tabs of the same row on multiple tables.
Source: https://habr.com/ru/post/1314414/More articles:Rename file in CVS - linuxRequired: Eclipse plugin for Javadoc highlighting unused parameters - eclipseUsing PHP + VoltDB together? - sqlHow to set the first value of a Select Box parameter using jQuery? - jqueryCan I selectively open a module so that I can refer to some of its values ββwithout qualification? - modulePrevent Skype from showing icons next to phone numbers - skypeConvert ASP.NET Webforms URL to MVC Route - asp.net-mvcAccess SharePoint UserProfile properties using a Powershell script - powershellBetter option than Process.Kill () - c #ListView and ArrayAdapter - androidAll Articles