How to merge two different databases

What happens if you export both databases and re-import them into a new database?