Re: string is sometimes null ? - Mailing list pgsql-general

From Graeme Hinchliffe
Subject Re: string is sometimes null ?
Date
Msg-id 1096533992.27969.56.camel@office-137.zen.co.uk
Whole thread Raw
In response to Re: string is sometimes null ?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Responses Re: string is sometimes null ?
Re: string is sometimes null ?
Re: string is sometimes null ?
List 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



pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Multiple Rules - an example
Next
From: Richard Huxton
Date:
Subject: Re: string is sometimes null ?