-2
I have a table of users where have the columns: id_usuario, name, id_company among others. And I have another table where I save other information of this user, and I also have the columns name and id_company, is there any way that when adding the id_usuario in the second table it automatically pulls the value of these other columns from the main table? id user is a Foreign key of the main table
Search for JOIN.
– anonimo
Your question got confused. In the database itself you want to pull the data? Replicate? .
– Rebeca Nonato
It was precisely the Join that I needed, I am new in the use of databases and did not know the function. Needed a function that returns the data that is related by the foreign key
– José Santos