Most databases support some form of "insert into select..." statement.
insert into a
select value from b;
How is this being achieved?
My understanding: The rows that are present at that point of time when the statement starts execution qualify to be picked up, and they are inserted into table a. At the same-time new values can be inserted into table b and they would not be "considered" since the query has already started execution.
Is my understanding close to being accurate? Any reference docs on this greatly appreciated.
Thanks!