Answer the question
In order to leave comments, you need to log in
How to merge 2 bases into one based on several conditions?
The bottom line is that I need to Assign the data of one database to the data of another ..
There is a dep database, it has a user_id. It is
necessary to extract the data about the user dep.user_id from the users database and actually combine them.
But so that they do not overwrite each other's values, here is a working example:
$hdata = \DB::table('dep')
->join('users', 'dep.user_id', '=', 'users.idshka')
->get();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question