Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Delete Particular Column in a Row

Author  Topic 

daipayan
Posting Yak Master

181 Posts

Posted - 2010-12-29 : 01:31:49
Hello there,

I am having a table named as example:
Columns are: ID, Name, qs1, qs2, qs3
Now I want run a T-Sql which will delete data from from qs1, qs2, qs3; not from ID, Name.
E.g.:
----------------------------
ID | Name | qs1 | qs2 | qs3
----------------------------
1 | John | 1 | 3 | 5
2 | Dave | 1 | 3 | 5
----------------------------

After running the T-Sql, the result should be shown as:
--------------------------------
ID | Name | qs1 | qs2 | qs3
--------------------------------
1 | John |<Null>|<Null>|<Null>
2 | Dave |<Null>|<Null>|<Null>
--------------------------------


Hope I can make you understand my problem.


Regards,
Daipayan
Software Programmer


Application has reported a 'Not My Fault' in module KRNL.EXE in line 0200:103F

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-12-29 : 01:40:28
update example
set qs1=null, qs2=null, qs3=null

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -