MySQL Forums
Forum List  »  General

Re: how to delete the records from one specific column
Posted by: nick
Date: March 14, 2005 07:12AM

This doesn't make sense to me. A record is equivalent to a row. You can delete data from a column, but it's non-sensical to say you want to delete a record from a column. You can delete a record by way of data in a column, however.

If you want to empty the data in a column, use an UPDATE setting the column (or field) that you want to empty equal to null or blank or zero.

For example:

UPDATE mytable SET columnb = null

Add whatever WHERE conditions you want.

Options: ReplyQuote


Subject
Written By
Posted
Re: how to delete the records from one specific column
March 14, 2005 07:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.