Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeTAD-0005HI-SV for pgsql-admin@arkaria.postgresql.org; Wed, 24 Jan 2018 22:05:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeTAD-0000JF-0I for pgsql-admin@arkaria.postgresql.org; Wed, 24 Jan 2018 22:05:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eeTAC-0000J5-MR for pgsql-admin@lists.postgresql.org; Wed, 24 Jan 2018 22:05:00 +0000 Received: from imx6.etecsa.cu ([200.55.152.141]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eeTA9-0007Ih-Ps for pgsql-admin@postgresql.org; Wed, 24 Jan 2018 22:04:59 +0000 Received: from mail.etecsa.cu (unknown [192.168.91.10]) by imx6.etecsa.cu (Postfix) with ESMTP id B50EE75; Wed, 24 Jan 2018 17:04:49 -0500 (CST) Received: from webmailrc.etecsa.cu (unknown [192.168.97.37]) (Authenticated sender: gilberto.castillo) by mail.etecsa.cu (Postfix) with ESMTPA id A72C83000043; Wed, 24 Jan 2018 17:04:49 -0500 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 24 Jan 2018 17:04:49 -0500 From: gilberto.castillo@etecsa.cu To: =?UTF-8?Q?Departamento_Soporte_T=C3=A9cnico?= Cc: postgres admin Subject: Re: [MASSMAIL]Copiar datos de una tabla de una BDD a otra tabla de otra BDD1 In-Reply-To: References: Message-ID: <9cced14ddabe13ae50e9873143b4eb7d@etecsa.cu> X-Sender: gilberto.castillo@etecsa.cu User-Agent: Roundcube Webmail/1.2.5 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 120899 [Jan 25 2018] X-KLMS-AntiSpam-Version: 5.7.102.0 X-KLMS-AntiSpam-Envelope-From: gilberto.castillo@etecsa.cu X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Info: LuaCore: 102 102 af3a88d6e861bad9354118b72dc8a98b709c8dc1, Auth:dkim=none, DmarcAF: none X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, 2018/01/16 12:15:49 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2018/01/24 16:12:00 #11702214 X-KLMS-AntiVirus-Status: Clean, skipped List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-01-24 16:53, Departamento Soporte Técnico wrote: > Estimados. > > Queria que me ayude con este caso. > > - Tengo una tabla de una BDD y quiero que esa informacion pase a otra > tabla de otra BDD1 . Las tablas tienen los mismo campos. > > pero no se como hacer.. > > esto estaba haciendo: > > insert into proyecto.dbo.tb_provincia (id_provincia,nombre) > select id_provincia,nombre from prueba.dbo.provincia Si mal no recuerdo, hablas de llenar una tabla con otras? Supongo es eso: Create tabla proyecto.dbo.tb_provincia As select * from prueba.dbo.provincia; -Si es otra cosa, salva la tabla y la restaura en la nueva BD.