Bhavin, the documentation says that you use \N to represent null values.
Keith Extranet [EMAIL PROTECTED] - 08/02/2003 17:25 To: mysql cc: Subject: Help with default NULL Hi, I have a table Log described as such: +----------+-----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+-----------+------+-----+---------+-------+ | rec | int(1) | YES | | NULL | | | time | int(10) | | | 0 | | | ct | char(100) | YES | | NULL | | +----------+-----------+------+-----+---------+-------+ Notice that default for ct is NULL. Now I have a ^ separated line in my file which I am loading via LOAD FILE. This line MAY or MAY NOT have the corresponding ct value. So, it could either be ....^www.yahoo.com^(ct value) or .....^^.....(no ct value). I would like that when there is no ct value present in the line, the ct value in Log table should stay as the default NULL....but it is not. The value becomes '' i.e. a zero length string. Any ideas on how can I keep it as NULL? Any help is much appreciated. Thanks in advance, Bhavin. sql, mysql, query. This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. --------------------------------------------------------------------- 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