NULL

    Date: 12/17/05 (MySQL Communtiy)    Keywords: no keywords

    Help! I'm a bit confused over how to set a value to NULL.

    If I have a string ('NULL') that I want to convert to NULL, is this correct?
    UPDATE table SET column = NULL WHERE column = 'NULL'

    What about if it's an empty string?
    UPDATE table SET column = NULL WHERE column = ''

    Sorry if this is terribly silly. TIA. :)

    Source: http://www.livejournal.com/community/mysql/77690.html

« Full text based search SQL || Fulltext index error »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home