Advertisement
Guest User

Untitled

a guest
Nov 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. INSERT INTO localdb_image select * from
  2. dblink('host=10.1.1.1
  3. user=user
  4. password=password
  5. dbname=oat', 'SELECT e.* FROM image e JOIN archived f ON e.image_id=f.image_id AND e.dd=f.dd') tt(
  6. id int ,
  7. drive_id character varying(255) ,
  8. ) ;
  9.  
  10. WHERE NOT EXISTS (SELECT 1 from localdb_image ei where ei.id = e.id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement