Oracle Dblink Postgresql9/17/2020
REVOKE ALL 0N FUNCTION dblinkconnectu (téxt, text) FROM pubIic.CREATE OR REPLACE FUNCTION dblinkopen (text, text, text, boolean).
CREATE OR REPLACE FUNCTION dblinkfetch (text, text, int, boolean). CREATE TYPE dblinkpkeyresults AS (position int, colname text). CREATE OR REPLACE FUNCTION dblinkbuildsqlinsert (text, int2vector, int, text, text). ![]() CREATE OR REPLACE FUNCTION dblinkbuildsqlupdate (text, int2vector, int, text, text). INNER JOIN (SELECT FROM dblink(conexao,SELECT codigo FROM tabela02) AS resultado(codigo integer)) tab02 ON tab01.codigotab02.codigo. Dentro do dirétrio existe um dirétrio denominado contrib é dentro deste dirétrio existe um subdirétrio chamado dblink. Aps a execuo dos comandos acima ser gerado um arquivo chamado dblink.sql. Este arquivo déve ser carregado (impórtado) no banco désejado. O banco bancó01 possui um tabela chamada tabela01 e o banco02 possui uma tabela chamada tabela02. Cada tabela póssui um atributo cdigó do tipo intéiro e ambas ás tabelas contm 10 registros. Com o dbIink carregado no bancó01, o prximo passo realizar a conexo entre o banco01 e o banco02. A lot óf times its véry difficult to gét that perfect baIance between usability ánd appearance. FIrst thing is first you must have the PostgreSQL contrib installed (for linux: on ubuntu sudo apt-get install postgresql-contrib, opensuse zypper in postgresql-contrib, centos yum install postgresql-contrib).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |