> If I read a file into a database with a \N in an empty date field > the field > is populated with 0000-00-00. If I insert a row into the same > database with > NULL in the date field it is populated with NULL. > > Programmatically is there a difference between the two? >
The field is proably defined with a default of 0000-00-00, which MySQL then uses when you input no data. That doesn't stop you from entering NULL specifically, unless the field is declared NOT NULL. / Carsten -- Carsten H. Pedersen keeper and maintainer of the bitbybit.dk MySQL FAQ http://www.bitbybit.dk/mysqlfaq --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php