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!

Column defined as NOT NULL default '' ?!

Status
Not open for further replies.

SirCharles

Programmer
Jun 10, 2002
212
US
I'm looking at a product called 'phpESP' which is a survey tool written in php and mysql. After using mysqladmin to sqldump the db, I noticed that some fields are defined as "...NOT NULL default ''" With my Oracle background, this just does not make sense. The '' implies null value to me, so why would these columns be defined this way?
 
Thanks. There is no field definition for the empty string in Oracle as far as I know.
 
So why would a column be defined as not null and have a default empty string value?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top