Re: Spaces in Oracle fields
From: Tommy Wareing <p0070621_at_brookes.ac.uk>
Date: 8 Dec 1994 12:15:39 GMT
Message-ID: <3c6tdb$36c_at_cs3.brookes.ac.uk>
Date: 8 Dec 1994 12:15:39 GMT
Message-ID: <3c6tdb$36c_at_cs3.brookes.ac.uk>
In article <3c5pl2$bvf_at_wabbit.cc.uow.edu.au>, Rev Dr Phil Herring <revdoc_at_wumpus.cc.uow.edu.au> says:
>In article <1994Dec7.105815.22775_at_bilpin.co.uk> Tony Desborough, tony_at_bilpin.co.uk writes:
>>In the short term I need an SQL update statement
>>to set a field to NULL if it contains spaces (and only spaces).
> update foo set
> bar = null
> where
> bar is not null
> and
> ltrim(bar) is null;
update foo set bar=rtrim(bar);
>>In the longer term I need to prevent users from filling a
>>screen field with spaces only.
>The same logic applies...
Forms automatically does this anyway.
_________________________ __________________________________________ / Tommy Wareing \ / I've been looking for an original sin, \ | p0070621_at_brookes.ac.uk X One with a twist and a bit of a spin | \ 0865-483389 / \ -- Pandora's Box, Jim Steinman / ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Received on Thu Dec 08 1994 - 13:15:39 CET