Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete data from a column?

Status
Not open for further replies.

Netherbeast

Programmer
Jun 4, 2002
89
US
Anyone know the correct command to delete data from an entire column?
I know how to delete the column, but not just the data.

Thanks in advance
 
There is not such a thing of deleting the value of a column. You can change the value of a column to another value. This new value can be NULL (which means that the column has not value). For example:

UPDATE table1
SET column1 = NULL;

The above will set to NULL the value of column1 on the whole table. Add a WHERE clause if you want to restrict this to only certain rows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top