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
 SQL Server Development (2000)
 Updating all rows with same value at once

Author  Topic 

Swati Jain
Posting Yak Master

139 Posts

Posted - 2006-09-18 : 03:07:42
Is it posible to update all rows at the same time? how?

suppose i want the value of rows column 'Marks' set to zero at once
how i can do that?


Swati

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-09-18 : 03:09:53
Somthing like this

Update TableName Set Marks = 0 ???

Chirag
Go to Top of Page

aida
Starting Member

5 Posts

Posted - 2006-09-18 : 23:40:46
U just try as Chirag said.

It's the simple way to set the field as zero.

Update Exam set Marks='0'

Exam = Your table Name
Marks = field to update
If Marks field is int (number) just do like this : Marks=0
else (char / varchar) just do like this : Marks='0'


quote:
Originally posted by chiragkhabaria

Somthing like this

Update TableName Set Marks = 0 ???

Chirag


Go to Top of Page
   

- Advertisement -