sql - how to delete only some columns value from a table with where caluse -


below table.

see building_id 41. want delete values row except building_id , building_name. how can that.

enter image description here

you can't delete specific values, can delete entire row.

however, can update these value null building_id= 41 row:

update tablename set sfti_id = null,     spmu_id = null,     sanctioned_dpr = null,     sacnctioned_contract = null building_id= 41; 

assuming columns accept null values.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -