From: A B <gentosaker(at)gmail(dot)com>
Date: 02/18/2010 03:38 PM
Subject: [NOVICE] How to select all columns and insert into other
Sent by: pgsql-novice-owner(at)postgresql(dot)org
If tableA and tableB have the same columns but in differrent order
Is there a way to get
INSERT INTO tableA SELECT * FROM tableB LIMIT 1;
to work, that is, get the value in column X to be placed in the
corresponding column in tableA without listing all the columns?
Create a view on the source table with columns listed in the necessary
order and use the view?
"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."
In response to
pgsql-novice by date
|Next:||From: dipti shah||Date: 2010-02-18 10:23:54|
|Subject: Re: Define permissions at database level|
|Previous:||From: A B||Date: 2010-02-18 10:10:32|
|Subject: How to select all columns and insert into other table|