how to delete values of a particular column in a table

  • 9 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.......

  • 9 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;
     


     

  • 9 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).

Contribute

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.

“Walking on water and developing software from a specification are easy if both are frozen.” - Edward V Berard