Search
 
SCRIPT & CODE EXAMPLE
 

SQL

insert data from one database table to another database table in postgresql using pgadmin

truncate table tableA;

insert into tableA
select *
from dblink('hostaddr=xxx.xxx.xxx.xxx dbname=mydb user=postgres',
            'select a,b from tableA')
       as t1(a text,b text);
Comment

PREVIOUS NEXT
Code Example
Sql :: how to select multiple columns from different tables in mysql 
Sql :: enum in sql server 
Sql :: wamp server mysql password 
Sql :: get size of mysql database 
Sql :: sql table 
Sql :: GUI for sqlite mac 
Sql :: mysql string split to array 
Sql :: sql highest salary by location 
Sql :: postgresql having 
Sql :: oracle cpu metric 
Sql :: mysqldump devilbox 
Sql :: mysql select database 
Sql :: get from database the most recent data limit by 5 
Sql :: hour must be between 1 and 12 
Sql :: stored procedure data to table 
Sql :: sqlite löschen einer tabelle 
Sql :: sql server whoami 
Sql :: delete account in flask and sqlalchemy 
Sql :: oracle create or replace index 
Sql :: sql alias 
Sql :: 0 
Sql :: compound trigger oracle 
Sql :: oracle add attribute to table 
Sql :: what is between keyword used for 
Sql :: list all functions and procedures in postgres query 
Sql :: php select data from mysql database without column name 
Sql :: equi joins in oracle 
Sql :: wp_query raw sql 
Sql :: joint query 
Sql :: install mssql on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =