Re: How to merge several attributes and Delete an attribute

From: Tod McQuillin <devin(at)spamcop(dot)net>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Yan Bai <annie_job(at)hotmail(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How to merge several attributes and Delete an attribute
Date: 2002-01-31 12:31:58
Message-ID: 20020131213117.K35682-100000@glass.pun-pun.prv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 31 Jan 2002, Christopher Kings-Lynne wrote:

> update table set newcol = FirstName||" "||MiddleName||" "||LastName;
>
> But why do that??? Just do your like query as follows:
>
> select * from table where FirstName like 'blah' or MiddleName like 'blah' or
> LastName like 'blah';

or...

select * from table where FirstName||" "||MiddleName||" "||LastName like
'blah';
--
Tod McQuillin

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tomas Eriksson 2002-01-31 13:58:04 compare with CHAR
Previous Message Alex Ott 2002-01-31 10:43:23 working with sequences