Does anyone know a performance or any other benefit of using select(1) or select(*) over the other? I am looking to optimize searching
Does anyone know a performance or any other benefit of using select(1) or select(*)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are some instances it makes a difference…The best thing to do is to look at the execution plan for your query using SELECT (1) and SELECT (*)
This post is also a good resource:
http://blog.sqlauthority.com/2008/02/26/sql-server-select-1-vs-select-an-interesting-observation/