0

like if table has three columns

  1. columnA
  2. columnB
  3. columnC

just to delete the data of columnA and columnB but not the columnC

since where clause only allows to select a specific row not data in various columns of that row

1 Answer 1

1

Why not just do

update table set columnA=null, columnB=null where ...

Assuming you get the "where" clause right, this should remove the data from the requested columns.

Sign up to request clarification or add additional context in comments.

2 Comments

you saved my life. thank you! why did i not think of it that way? pressure i guess:-)
@nadir Probably because you've not gone through the basics of sql

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.