As long as the field allows nulls, then this shouldn't be a problem -
although I'm speaking from SQL Server experience and not Oracle...

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


> -----Original Message-----
> From: David Shadovitz [mailto:[EMAIL PROTECTED]]
> Sent: 03 January 2001 03:31
> To: CF-Talk
> Subject: OT: Update to Null
>
>
> 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to