sql server - IN vs = in Where Clauses -


I try to make standardized SQL scripts for use in my SSRS reports if I want to make a statement like: < / P>

  Choose from mytables *  

And where to use the SQL variable (SSRS parameter) in one block, any speed advantage to use it: < / P>

Where Field = @ MyFilled

VS

Where in the field (@MyField)

I know that the second option supports multiple selections and single selections, while the first one supports only.

Can I hit any performance if I write all the details with uniformity in the statement for uniformity?

There is no performance hit

As a side note, I hope That you are not actually using SELECT * in your actual questions.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -