Terry-380449
Default port
Points: 1458
More actions
March 14, 2008 at 8:50 am
#154198
Hello
If a have an index with field1 and field2, is it the same if a do a query:
select * from table where field1 = x and field2 = y
or
select * from table where field2= y and field1 = x
?
is it the same performance?
THank you
Andras Belokosztolszki
SSC-Insane
Points: 22031
March 14, 2008 at 8:52 am
#789678
Terry (3/14/2008)HelloIf a have an index with field1 and field2, is it the same if a do a query:select * from table where field1 = x and field2 = yor select * from table where field2= y and field1 = x?is it the same performance?THank you
Terry (3/14/2008)
Yes it is, the query optimizer can handle such cases.
Regards,
Andras
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply