Received: from home.mediaparks.lv (home.mediaparks.lv [195.2.123.220]) by hub.org (8.10.1/8.10.1) with ESMTP id e6VKkwB22053 for ; Mon, 31 Jul 2000 16:46:58 -0400 (EDT) Received: from sandis (sandis.mediaparks.lv [195.2.123.209]) by home.mediaparks.lv (8.9.3/8.9.3) with SMTP id WAA09377 for ; Mon, 31 Jul 2000 22:45:45 +0300 Message-ID: <008c01bffb28$457f56a0$d17b02c3@mediaparks.lv> From: "Sandis" To: References: <87k8e78yg9.fsf@matt.w80.math-hat.com> <00072715082905.09700@comptechnews> <013001bff889$86051030$74b5f8c2@wkst6> <00072821505101.17801@comptechnews> <020f01bff95f$ac6bd2a0$74b5f8c2@wkst6> Subject: Simple concatenation in select query Date: Mon, 31 Jul 2000 22:48:16 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200007/288 Hello, Sorry for the stupid posting, but.. There was a string concatenation function in MySQL: SELECT CONCAT(first_name, " ", last_name) FROM table; Is there a similar function in Postgres? Certainly, it's possible to live without it, but i'd like to write as above, doing concatenation in place. Ok, it seems i found it now: SELECT TEXTCAT(first_name, last_name) FROM table; but it allows only 2 arguments, inserting " " or ' ' (space) causes an error: attribute ' ' not found! Why postgres doesnt see it as string? Ok, i got it, after all! It took > 30 min to write this query. :( SELECT textcat(textcat(first_name,text ' '),last_name) from table; It kind of strange, but i found this function not in "user manual", but doing "\df text".. There is some differences between function descriptions in manual and those that \df returns.. Virtually \df returns much more functions than in manual, and there is some differences in argument types. May be someone knows a better, complete manual with ALL function described and code samples? sandis@mediaparks.lv www.mediaparks.lv