Jump to content

Is it recommended to use default NULL ?


PHPFAN10

Recommended Posts

Hi,

 

If you got a table and some rows may contain values and some may not or may never not depending if user wants to provide such details on a form; is it recommended to use DEFAULT NULL for that column?

 

in phpmyadmin when creating/editing a column; it has an option saying Default: with a drop down showing None | As Defined | NULL | Current Timestamp

 

As some users may wish to provide some of there details for there profile and some may not i'm not sure if there is any benefits etc using NULL from drop down box as default. If so why is it recommended to use default NULL, are there any performance gains etc? if there's no benefits i guess i should use None?

Link to comment
https://forums.phpfreaks.com/topic/229028-is-it-recommended-to-use-default-null/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.