G
G
ganjo8882019-06-10 16:49:55
Laravel
ganjo888, 2019-06-10 16:49:55

Write sql query to join tables, how?

I need to write a script in which I need to merge 2 tables and save the result to a file so that later I can import these results into another table.
Question: what is the best way to do this in laravel? via console command?
I know how to make a sql query to join tables (left join), but I don’t understand how to save it to a table using lararavel tools. Tell me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-06-10
@tsklab

INSERT INTO SELECT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question