Is it possible to UPDATE the value of a numeric field to NULL?

Here's the scenario, which must be common:

The records of the Employees database table are displayed in an HTML
table, with an Edit and Delete button in each row.  The user clicks Edit
to display a particular record in an editable form.  If the user clears
the Age field and submits the form, what would the SQL UPDATE statement
look like?

I don't think this works:
   UPDATE Employees
   SET Age = NULL
   WHERE Id = 2

I could test on FORM.Age and then do "SET Age = -1" if no age was
specified, but I'd rather not.

Thanks.
-David
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to