Jump to content

One more ? - Optionally blank fields?


Conjurer

Recommended Posts

I am going to have a registration form that contains some required fields and some optional fields.

 

When I create the table to hold these values I know the required fields should be set to Not Null.

 

What is the common practice on the optional fields -- do you set them to Null or do you set them to Not Null and put a blank space \' \' in the default value?

 

Thanks for your help.

Link to comment
Share on other sites

Hi, i\'ll tell you what i\'ve learnt in my University.

 

I try not to use null fields because it could be a problem with some functions and programs. I don\'t know what is the database for but I would work with \'\' or DEFAULTS values.

 

Good luck. :)

 

Aahh, sorry if my english wasn\'t good enough, i speak spanish and i loose a little practice speaking english.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.