Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
query for how to delete a specific column value in sql server 2005
Posted
Comments
Vivek Krishnamurthy 3-Nov-11 1:29am    
Try to rephrase you question.
Are you trying to Delete a value in a column (set the value to null) or trying to delete the column from the table itself ?

 
Share this answer
 
You can not exactly delete the column value.
alternatively what you can do is use update statment and
update the value with blank.
SQL
update users
set user_adr = ''
where user_id = 'userid'
 
Share this answer
 
if u trying to delete a single column value then
change a single value to NULL or you should use an UPDATE statement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900