Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import NULL or empty field field value

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB
Hi all

If you are importing data from an external data source and you have the choice of populating empty fields with NULL, what are the pros and cons of doing so?

TIA

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommandertm.net
PDFcommandertm.com
 
if the field is numeric, or a date field, you really have only one choice -- NULL

anything else would be a "dummy" or "default" value, which gets you into way more trouble than NULL will

as for strings, well, there are some people who like the empty string (a non-NULL value), but i don't belong to that group

NULL can be your friend!! ™ :)

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top