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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Certain Columns Only 1

Status
Not open for further replies.

cwsstins

MIS
Aug 10, 2004
412
US
I need an SQL statement to delete only 2 out of multiple columns on a table. How can I do this?

I've been experimenting with syntax variations on the DELETE statement, but everything I try deletes all columns for the specified rows.
 
Code:
UPDATE table
SET    col1 = NULL,
       col2 = NULL
WHERE  etc....;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top