Easy SQL Question

From: "Greg" <greg(at)officium(dot)co(dot)za>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Easy SQL Question
Date: 2006-06-12 08:58:22
Message-ID: 000d01c68dfe$5b782d50$126887f0$@co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I Was looking at the PgSQL documentation last night but could not find how
to join two fields as one,

i.e

select (firstname + lastname) as fullname from users

I also tried (Cast(firstname as varchar) + Cast(lastname as varchar))

But that doesn't work..
How do I do this?

Thanks

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Shoaib Mir 2006-06-12 09:01:44 Re: Easy SQL Question
Previous Message Greg 2006-06-12 08:58:04 Question about stored procedures