Answer the question
In order to leave comments, you need to log in
How to run the entire SELECT through INSERT SELECT?
I am not very strong in MySQL. Gradually gaining skill and now I have a problem. Select unique values from one table, then search the other with these values and write the result to a new one.
How to record the question does not arise. INSERT SELECT. How to choose too. And here's how it doesn't even come to mind that I chose to drive through INSERT SELECT.
I tried to google the analogue of foreach in php, only in MySQL, but somehow something is not very good.
In general, I would be grateful for an example of such a request.
Answer the question
In order to leave comments, you need to log in
rather confusing explanation of the problem. you need either a complex select for a clear selection of what to add or a "cursor"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question