我有两个不同的SQLite数据库XXX和YYY.XXX包含表A,YYY分别包含B. A和B具有相同的结构(列).如何在Python中附加A的行 - SQLite API.附加A后包含A行和B行.
I need to merge two tables in sqlite based on a common column. The problem is both the tables belong to different databases. So, what would be an efficient way to merge the tables here?
A sample table would be like this with the desired result. But the problem is these two tables are in different databases.
Table 1: Employee_Pro_Profile
Columns: Emp_Id, Emp_Name, Emp_Sal
Table 2: Employee_Personal_Profile
Columns: Emp_Id, Emp_Home_Address, Emp_Phone
Resulting Table: Employee_Complete
Columns: Emp_Id, Emp_Name, Emp_Sal, Emp_Home_Address, Emp_Phone
Run Code Online (Sandbox Code Playgroud)