Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8937

Re: SQL syntax review

$
0
0

Thanga Prakash wrote:

 

... and make sure that you used the fields in the order as it is appearing in the table, I mean the same index as in the tables.

 

 

I assume you mean the ON- and WHERE-conditions. Please note that this is also a myth.

The order of the fields does not matter, presence or absence of fields does matter (a lot).

If you have an index with fields A, B and C in that order, you might as well write ... WHERE C = ... AND B = ... AND A = ...

Compare yourself with an example program if in doubt.

 

Thomas


Viewing all articles
Browse latest Browse all 8937

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>