When doing a query like this:
update table set field1=3, field2=3 where field3=4;
Is it faster then doing this:
update table set field1=3 where field3=4;
update table set field2=3 where field3=4;
Or does it come up to the same thing, internally? This is assuming the connection is on during this whole time and that field3 is indexed.
I'll be designing a sql table structure for a very large application that has very variable data sets so just brainstorming how I will structure my tables.
update table set field1=3, field2=3 where field3=4;
Is it faster then doing this:
update table set field1=3 where field3=4;
update table set field2=3 where field3=4;
Or does it come up to the same thing, internally? This is assuming the connection is on during this whole time and that field3 is indexed.
I'll be designing a sql table structure for a very large application that has very variable data sets so just brainstorming how I will structure my tables.