Add column by using SELECT statement - Mailing list pgsql-sql

From John Zhang
Subject Add column by using SELECT statement
Date
Msg-id 618950b80902241937y3e48e3c7ua3614c87d373ec71@mail.gmail.com
Whole thread Raw
Responses Re: Add column by using SELECT statement
List pgsql-sql
Hi all,<br /><br />I was wondering how I can add a column and populate it by some query.<br /><br />For example:<br
/>TblA(Id, fld1)<br />TblB(Id, fld1, fld2)<br /><br />I have a query:<br />SELECT b.fld2 <br />FROM tblB b <br />WHERE
condition1<br /><br />what I want to do is add a column in tblA: fld2 <br />and polpulate the newly added field with
thequery <br />on tblA.Id=tblB.Id<br /><br />Any advice? Any input would be much appreciated.<br /><br />Thanks a
lot<br/>John<br /> 

pgsql-sql by date:

Previous
From: "Fernando Hevia"
Date:
Subject: Re: Best practices for geo-spatial city name searches?
Next
From: "A. Kretschmer"
Date:
Subject: Re: Add column by using SELECT statement