O$: Null Fields
Keith Bartlett
keith at adnetltd.co.uk
Tue Apr 21 12:38:59 EDT 2009
On 21 Apr 2009, at 17:03, Peter van Rooij wrote:
> If you do not want to use nulls, don't use them but keep in mind :
> there is a big difference between a value null an an empty value.
> The last has been assigned and the first was not.
Is there? In real life maybe there is and maybe there isn't. If you
are adding a set of records to get the total for, say an invoice, does
it make any difference to the total if some of the values are NULL
rather than zero? Different thing if you are doing some statistical
analysis of course.
We don't store any NULL's in our database, except for dates in db's
that don't allow blank dates, so before any insert, update we do a
simple sendall to set every NULL field to '' or 0 depending on its
type. Works for us, maybe not for everyone.
Cheers
Keith
Keith Bartlett
Adnet Ltd - (0)1491 642133
www.adnetltd.co.uk
This message contains information from Adnet Ltd which may be privileged
or confidential. If you are not the intended recipient be aware that any
disclosure, copying, distribution or use of the contents of this mail is
prohibited. If you have received this message in error, please notify us
immediately and then delete this mail from your system.
More information about the omnisdev-en
mailing list