String concat operator???

From: webmaster <webmaster(at)tony(dot)cz>
To: pgsql-sql(at)postgresql(dot)org
Subject: String concat operator???
Date: 1999-06-30 13:16:31
Message-ID: 99063015213102.00441@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm trying to update a character field by foll. query:

update temp_kat set id_look = substr(ident,1,6) || '-' || substr(ident,7,7)
where from_kat='P';

Both id_look and ident are varchars.. So what's wrong with || operator? There
is an error parsing the querry near || ...

Who is stupid? Me, or postgresql 6.4.2 :) ? It look like legal expression for
me...
--

Michal Samek, Tony distribuce s.r.o.
webmaster(at)tony(dot)cz (++420659/321350)
ICQ: 38607210

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Lockhart 1999-06-30 13:31:51 Re: [PORTS] Port Bug Report: parse error not detected on unterminated quote
Previous Message Dirk Drechsel 1999-06-30 12:53:26 Re: [SQL] Port?