postgresql: INSERT INTO … (SELECT * …)

前端 未结 6 1442
醉话见心
醉话见心 2020-12-04 08:49

I\'m not sure if its standard SQL:

 INSERT INTO tblA 
 (SELECT id, time 
    FROM tblB 
   WHERE time > 1000)  

What I\'m looking for

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 09:48

    You can use dblink to create a view that is resolved in another database. This database may be on another server.

提交回复
热议问题