Subject Re: [firebird-support] Allow Nulls
Author Mike Dewhirst
women_lover_best wrote:
> When should we use allow nulls..what null signifies? If a column is
> empty say example phonenumber of a customer..it means we dont have
> customers number..so we allow null..for such a column since it is not
> required..and when I access in my app null means we dont have customers
> phone number..is this the right interpretation?

This isn't an answer. It is a supplementary question.

If the table for phone numbers had a foreign key which linked it to the
customer table then would no phone number for a customer being
represented by an absence of a phone number record completely remove the
need for a decision to use nulls.

Mike


> thks
> vishy
>
>
>
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://firebird.sourceforge.net and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>