Advertisement
Guest User

Untitled

a guest
Jan 30th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. CREATE EXTENSION dblink;
  2.  
  3. SELECT * FROM
  4. dblink ('dbname = bd_name port = 5432 host = 10.6.6.6 user = username password = password',
  5. 'SELECT id, code FROM sch_schema.table')
  6. AS new_table(id INTEGER, code character varying);
  7.  
  8. SELECT * FROM
  9. dblink ('dbname = bd_name port = 5432 host = 10.6.6.6 user = username password = password',
  10. 'SELECT * FROM sch_schema.table');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement