Mr J.L. escreveu:
> 
>    É possivel fazer "MERGE" semelhante ao oracle no postgresql? (p/ ele 
> verificar se deveria fazer o insert ou um update)
> 


O PostgreSQL não implementou tal comando (pelo menos até a versão 8.3).
Em
http://www.postgresql.org/docs/current/interactive/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
você encontra o exemplo 38-1 que é uma função que faz exatamente isso.

Osvaldo
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a