how to delete values of a particular column in a table

  • 13 years ago

    how to delete tempdata fields from the questionbank table. In questionbank table has other columns as well but only hv to delete the tempdate column values. plss help me.......

  • 13 years ago

     hi yuga_shree,


                   You can delete all the values of particular column by using this query,


                  UPDATE Table Name SET Column Name = Null;

    here in your case,

                  UPDATE questionbank SET tempdata = Null;


  • 13 years ago
    I prefer to use    UPDATE myTABLE set myCol = -1

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“C++ : Where friends have access to your private members.” - Gavin Russell Baker