Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about SQL statement from a beginner

Status
Not open for further replies.

sbraaa

Programmer
Oct 7, 2002
3
IT
Hi, my question is:

update table set field1 = 0;
update table set field2 = 0;
update table set field3 = 0;
update table set field4 = 0;

or

update table set field1=0, set field2=0, set field3=0, set field4=0

which is the fastest?


 
i haven't tested it, but for no reason the first should be faster

so the second one is better
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top