pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Muralidharan Ramakrishnan <contact2muraliin@yahoo.co.in>
To: Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it>
To: pgsql-sql@postgresql.org
Subject: Re: copy table
Date: Fri, 14 Oct 2005 15:48:05 +0100 (BST)
Message-ID: <20051014144805.57201.qmail@web8609.mail.in.yahoo.com> (raw)
In-Reply-To: <004801c5d09b$747fad80$1102a8c0@dream>

INSERT INTO MYSCHEMA2.TABLENAME
     SELECT * FROM MYSCHEMA1.TABLENAME WHERE < CONDITION >

Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it> wrote:
Hello
 
How can i copy a table from one schema to another..
 
Example..
 
* I have a database "mydatabase"
* then i have 2 schemas "myschema1" and "myschema2"
* in "myschema1" i have inserted a new line and i want to copy that to "myschema2" so they both will be same.. 
 
How can i do it with SQL ?? 
 
I use pgadmin 3 to make my database in postgresql
 
thank u


		
---------------------------------
 Yahoo! India Matrimony: Find your partner now.

view thread (3+ messages)

Message-ID: <20051014144805.57201.qmail@web8609.mail.in.yahoo.com>
Permalink:  ../20051014144805.57201.qmail@web8609.mail.in.yahoo.com/
Also on:    postgresql.org/message-id/20051014144805.57201.qmail@web8609.mail.in.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: contact2muraliin@yahoo.co.in, shavonne.marietta@studioform.it
  Subject: Re: copy table
  In-Reply-To: <20051014144805.57201.qmail@web8609.mail.in.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox