Using multiple databases in a query

Hello, i have 2 databases and what i need to do is take the data from a table and copy it to the other. I have access to both and i already have the models too, but i don’t know how to make a query to insert db1 data into db2.
I appreciate any help!!! Also sorry for my english.