Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. MySQL
  4. deleting all the records of a particular field in sql server 2005

deleting all the records of a particular field in sql server 2005

Scheduled Pinned Locked Moved MySQL
databasesql-serversysadmintutorial
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijaybhasker
    wrote on last edited by
    #1

    Hi. I'm new to sql server 2005. I want to delete all the records of a particular field in a table. Can anyone tell me how to do it.

    U 1 Reply Last reply
    0
    • V vijaybhasker

      Hi. I'm new to sql server 2005. I want to delete all the records of a particular field in a table. Can anyone tell me how to do it.

      U Offline
      U Offline
      Usharva
      wrote on last edited by
      #2

      Delete Table YourTable Where Column1='UrCondition'

      V 1 Reply Last reply
      0
      • U Usharva

        Delete Table YourTable Where Column1='UrCondition'

        V Offline
        V Offline
        Vineeta Agarwal
        wrote on last edited by
        #3

        I think u want to delete the particular column value only..... do not want to delete all records...... UPDATE tbl_name SET col_name=NULL; it will delete all values of that particular column.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups