Skip to content
Advertisement

Insert selected columns from one table to another SQL

I have two separate databases in the same host (localhost:3306). I have one table from the first database and a second from the other database. Here is 2 screenshots to become more clear enter image description here

enter image description here

I need to match:

Is there any automatic way with a software? Need I to write some specific query to copy these 4 columns from one table to another? I search on internet but I didn’t find any example. For the info, the first picture is the ldap users from keycloack and the second one is the imported users to an app with sso auth.

Till now I copied manually the records of users.

thanks

Advertisement

Answer

you should try to update users with missing/different informations from ldap database to app database

EDIT

After more detailed explanation I understood that you need to insert missing users and not to update them.

this should work

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement