1
I have the following situation:
Bench To and the bank B both with the table customers with the following data:
A.clientes B.clientes
id | nome id | nome
------------------- -------------------
1 | Lucas 1 | Mauro
5 | Marcos 3 | Sergio
8 | Paulo
I would like a command to update and insert into the bank’s client table B the data that were in the client table of the bank To and that was the result:
B.clientes
id | nome
-------------------
1 | Lucas <- UPDATE
3 | Sergio
5 | Marcos <- INSERT
8 | Paulo <- INSERT
My SGDB is Postgresql.
These banks are on the same server or on different servers?
– Jeferson Almeida
Same server @Jefersonalmeida
– Laércio Lopes
@Anthonyaccioly passed that same link in my reply, in case he really needs to do it
– Jeferson Almeida