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.
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
Post a Comment