Re: string is sometimes null ?

From: Graeme Hinchliffe <graeme(dot)hinchliffe(at)zeninternet(dot)co(dot)uk>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: string is sometimes null ?
Date: 2004-09-30 08:46:32
Message-ID: 1096533992.27969.56.camel@office-137.zen.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> If monthcurr or username are null, the above will be null.
> Anything || NULL => NULL.

AH! thanks sorted it now. That is not the behaviour I would have
expected :)

Is there a concatination operator that will not do this? IE

if

var1 || var2 || var3

and var2 is null would result in just var1var3 ?

Many thanks for your help

--
-----
Graeme Hinchliffe (BSc)
Core Internet Systems Designer
Zen Internet (http://www.zen.co.uk/)

Direct: 0845 058 9074
Main : 0845 058 9000
Fax : 0845 058 9005

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holger Klawitter 2004-09-30 09:23:17 Re: string is sometimes null ?
Previous Message Igor Kryltsov 2004-09-30 08:07:40 Upgrade 7.3.3 to 7.4.5